diff --git a/src/config/app.php b/src/config/app.php --- a/src/config/app.php +++ b/src/config/app.php @@ -84,6 +84,11 @@ 'website_domain' => env('APP_WEBSITE_DOMAIN', env('APP_DOMAIN', 'domain.tld')), + 'services_domain' => env( + 'APP_SERVICES_DOMAIN', + "services." . env('APP_WEBSITE_DOMAIN', env('APP_DOMAIN', 'domain.tld')) + ), + /* |-------------------------------------------------------------------------- | Application Timezone diff --git a/src/routes/api.php b/src/routes/api.php --- a/src/routes/api.php +++ b/src/routes/api.php @@ -165,7 +165,7 @@ if (\config('app.with_services')) { Route::group( [ - 'domain' => 'services.' . \config('app.website_domain'), + 'domain' => \config('app.services_domain'), 'prefix' => 'webhooks' ], function () {