diff --git a/app/Support/helpers.php b/app/Support/helpers.php index f46a40e..75163b0 100644 --- a/app/Support/helpers.php +++ b/app/Support/helpers.php @@ -15,3 +15,24 @@ if (! function_exists('ladill_account')) { return $request->attributes->get('actingAccount') ?? $request->user(); } } + +if (! function_exists('ladill_domains_url')) { + function ladill_domains_url(string $path = ''): string + { + return 'https://'.config('app.domains_domain').($path !== '' ? '/'.ltrim($path, '/') : ''); + } +} + +if (! function_exists('ladill_account_url')) { + function ladill_account_url(string $path = ''): string + { + return 'https://'.config('app.account_domain').($path !== '' ? '/'.ltrim($path, '/') : ''); + } +} + +if (! function_exists('ladill_servers_url')) { + function ladill_servers_url(string $path = ''): string + { + return 'https://'.config('app.servers_domain').($path !== '' ? '/'.ltrim($path, '/') : ''); + } +} diff --git a/config/app.php b/config/app.php index 92b42fe..061bc42 100644 --- a/config/app.php +++ b/config/app.php @@ -130,5 +130,6 @@ return [ 'account_domain' => env('ACCOUNT_DOMAIN', 'account.'.(parse_url((string) env('PLATFORM_URL', 'https://ladill.com'), PHP_URL_HOST) ?: 'ladill.com')), 'hosting_domain' => env('HOSTING_DOMAIN', parse_url((string) env('APP_URL', 'https://hosting.ladill.com'), PHP_URL_HOST) ?: 'hosting.ladill.com'), 'servers_domain' => env('SERVERS_DOMAIN', 'servers.'.(parse_url((string) env('PLATFORM_URL', 'https://ladill.com'), PHP_URL_HOST) ?: 'ladill.com')), + 'domains_domain' => env('DOMAINS_DOMAIN', 'domains.'.(parse_url((string) env('PLATFORM_URL', 'https://ladill.com'), PHP_URL_HOST) ?: 'ladill.com')), ]; diff --git a/resources/views/hosting/account.blade.php b/resources/views/hosting/account.blade.php index d407fa0..f2a9431 100644 --- a/resources/views/hosting/account.blade.php +++ b/resources/views/hosting/account.blade.php @@ -84,7 +84,7 @@ }"> {{-- Breadcrumb --}} @@ -135,7 +135,7 @@
There was a problem setting up your hosting account. Our team has been notified and will resolve this shortly. If you need immediate assistance, please open a support ticket.
+There was a problem setting up your hosting account. Our team has been notified and will resolve this shortly. If you need immediate assistance, please open a support ticket.
Don't have a domain? - Purchase one first + Purchase one first
@elseDon't have a domain? - Purchase one first + Purchase one first
@else