mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:04:03 +00:00
fix check isSubdomain
This commit is contained in:
parent
0b248f937d
commit
6398c027b2
1 changed files with 4 additions and 1 deletions
|
|
@ -27,6 +27,9 @@ class InitializeTenancyByDomainOrSubdomain
|
||||||
|
|
||||||
protected function isSubdomain(string $hostname): bool
|
protected function isSubdomain(string $hostname): bool
|
||||||
{
|
{
|
||||||
return Str::endsWith($hostname, config('tenancy.central_domains'));
|
return Str::endsWith(
|
||||||
|
$hostname,
|
||||||
|
array_map(fn ($domain) => '.' . $domain, config('tenancy.central_domains'))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue