mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 07:14:02 +00:00
fix failing tests
This commit is contained in:
parent
d77d98f9e2
commit
b33869fc3a
1 changed files with 5 additions and 2 deletions
|
|
@ -56,9 +56,12 @@ class DomainTenantResolver extends Contracts\CachedTenantResolver
|
||||||
return $tenant;
|
return $tenant;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function isSubdomain(string $hostname): bool
|
protected function isSubdomain(string $hostname): bool
|
||||||
{
|
{
|
||||||
foreach (config('tenancy.central_domains') as $domain) {
|
$centralDomains = Arr::wrap(config('tenancy.central_domains'));
|
||||||
|
|
||||||
|
foreach ($centralDomains as $domain) {
|
||||||
|
|
||||||
if ($hostname === $domain) {
|
if ($hostname === $domain) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue