1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 15:24:04 +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:
lukinovec 2025-12-29 15:47:38 +01:00
parent e3701f1cc1
commit 500905f9e1

View file

@ -167,6 +167,10 @@ class TenancyServiceProvider extends ServiceProvider
// ? $tenant->domain // ? $tenant->domain
// : $tenant->domains->first()->domain; // : $tenant->domains->first()->domain;
// //
// if (is_null($tenantDomain)) {
// return $originalRootUrl;
// }
//
// $scheme = str($originalRootUrl)->before('://'); // $scheme = str($originalRootUrl)->before('://');
// //
// if (str_contains($tenantDomain, '.')) { // if (str_contains($tenantDomain, '.')) {