Wire Ladill domain picker and purchase modal into hosting flows.
Deploy Ladill Hosting / deploy (push) Successful in 51s
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user