mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 10:24:03 +00:00
Fix URL override example in TenancyServiceProvider stub
If the tenant doesn't have any domain, set the root URL back to the original one.
This commit is contained in:
parent
e3701f1cc1
commit
500905f9e1
1 changed files with 4 additions and 0 deletions
|
|
@ -167,6 +167,10 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
// ? $tenant->domain
|
||||
// : $tenant->domains->first()->domain;
|
||||
//
|
||||
// if (is_null($tenantDomain)) {
|
||||
// return $originalRootUrl;
|
||||
// }
|
||||
//
|
||||
// $scheme = str($originalRootUrl)->before('://');
|
||||
//
|
||||
// if (str_contains($tenantDomain, '.')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue