mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 22:14:03 +00:00
Fix getTenantIdByDomain() return type (#350)
This commit is contained in:
parent
e44b3a1776
commit
a99e8ac341
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class CachedTenantResolver
|
|||
return $this->config->get('tenancy.storage_drivers.db.cache_ttl');
|
||||
}
|
||||
|
||||
public function getTenantIdByDomain(string $domain, Closure $query): string
|
||||
public function getTenantIdByDomain(string $domain, Closure $query): ?string
|
||||
{
|
||||
return $this->cache->remember('_tenancy_domain_to_id:' . $domain, $this->ttl(), $query);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue