1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 10:14:04 +00:00

Fix URL root override example

This commit is contained in:
lukinovec 2023-03-01 10:14:40 +01:00
parent 8b7862d8ad
commit 2ceef4697e

View file

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