Wire Ladill domain picker and purchase modal into hosting flows.
Deploy Ladill Hosting / deploy (push) Successful in 51s

Use the Domains API for owned domains across panel, account, and order forms, with an embedded iframe purchase modal instead of redirecting to domains.ladill.com.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-19 18:01:23 +00:00
co-authored by Cursor
parent 44cfb1d9b9
commit 537e34cbd7
20 changed files with 532 additions and 306 deletions
+11
View File
@@ -23,6 +23,17 @@ if (! function_exists('ladill_domains_url')) {
}
}
if (! function_exists('ladill_domains_embed_url')) {
function ladill_domains_embed_url(string $path = '/embed/find'): string
{
$url = ladill_domains_url($path);
$origin = rtrim((string) config('app.url'), '/');
$separator = str_contains($url, '?') ? '&' : '?';
return $url.$separator.'parent_origin='.urlencode($origin);
}
}
if (! function_exists('ladill_home_url')) {
function ladill_home_url(string $path = ''): string
{