1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 04:04:04 +00:00

Merge branch 'master' of github.com:archtechx/tenancy into cache-prefix

This commit is contained in:
lukinovec 2023-03-20 12:19:15 +01:00
commit a1dc8e93b8
2 changed files with 6 additions and 6 deletions

View file

@ -124,12 +124,12 @@ class TenancyServiceProvider extends ServiceProvider
* Example of CLI tenant URL root override:
*
* UrlTenancyBootstrapper::$rootUrlOverride = function (Tenant $tenant) {
* $baseUrl = url('/');
* $scheme = str($baseUrl)->before('://');
* $hostname = str($baseUrl)->after($scheme . '://');
* $baseUrl = env('APP_URL');
* $scheme = str($baseUrl)->before('://');
* $hostname = str($baseUrl)->after($scheme . '://');
*
* return $scheme . '://' . $tenant->getTenantKey() . '.' . $hostname;
*};
* return $scheme . '://' . $tenant->getTenantKey() . '.' . $hostname;
* };
*/
}