mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:44:04 +00:00
Fix asset publishing
This commit is contained in:
parent
4d6003eec0
commit
0508429e0f
7 changed files with 22 additions and 15 deletions
|
|
@ -53,7 +53,7 @@ class InitializeTenancyBySubdomain extends InitializeTenancyByDomain
|
|||
|
||||
// If we're on localhost or an IP address, then we're not visiting a subdomain.
|
||||
$notADomain = in_array(count($parts), [1, 4]);
|
||||
$thirdPartyDomain = ! Str::endsWith($hostname, config('tenancy.central_domains'));;
|
||||
$thirdPartyDomain = ! Str::endsWith($hostname, config('tenancy.central_domains'));
|
||||
|
||||
if ($notADomain || $thirdPartyDomain) {
|
||||
$handle = static::$onInvalidSubdomain ?? function ($e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue