Wire Ladill domain picker and purchase modal into servers flows.
Deploy Ladill Servers / deploy (push) Successful in 27s
Deploy Ladill Servers / deploy (push) Successful in 27s
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:
@@ -632,17 +632,9 @@ class HostingProductController extends Controller
|
||||
return $product->catalogSummary();
|
||||
}
|
||||
|
||||
private function getUserDomains($user): \Illuminate\Support\Collection
|
||||
private function getUserDomains($user): array
|
||||
{
|
||||
return \App\Models\Domain::query()
|
||||
->where('user_id', $user->id)
|
||||
->whereNull('hosting_account_id')
|
||||
->whereDoesntHave('hostedSites')
|
||||
->where(function ($query) {
|
||||
$query->where('source', 'purchased')
|
||||
->orWhereNotNull('email_domain_id');
|
||||
})
|
||||
->orderBy('host')
|
||||
->get(['id', 'host', 'status', 'onboarding_state']);
|
||||
return app(\App\Services\Domains\LadillDomainsClient::class)
|
||||
->ownedForUser((string) $user->public_id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user