1
0
Fork 0
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:
Samuel Štancl 2020-05-17 15:14:05 +02:00
parent 4d6003eec0
commit 0508429e0f
7 changed files with 22 additions and 15 deletions

View file

@ -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) {