mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 18:34:04 +00:00
Refactor checking host is subdomain
This commit is contained in:
parent
d4a99011e6
commit
5fa8543279
1 changed files with 1 additions and 1 deletions
|
|
@ -27,6 +27,6 @@ class InitializeTenancyByDomainOrSubdomain
|
|||
|
||||
protected function isSubdomain(string $hostname): bool
|
||||
{
|
||||
return Str::endsWith($hostname, config('tenancy.central_domains'));
|
||||
return ! Str::of($hostname)->replace(config('tenancy.central_domains'), '')->isEmpty();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue