mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:44:04 +00:00
Check if cached tenant is truthy
This commit is contained in:
parent
8d06952324
commit
46b1cfb1fb
1 changed files with 1 additions and 2 deletions
|
|
@ -27,8 +27,7 @@ abstract class CachedTenantResolver implements TenantResolver
|
||||||
|
|
||||||
$key = $this->getCacheKey(...$args);
|
$key = $this->getCacheKey(...$args);
|
||||||
|
|
||||||
$tenant = $this->cache->has($key) ? $this->cache->get($key) : null;
|
if ($tenant = $this->cache->get($key)) {
|
||||||
if ($tenant) {
|
|
||||||
$this->resolved($tenant, ...$args);
|
$this->resolved($tenant, ...$args);
|
||||||
|
|
||||||
return $tenant;
|
return $tenant;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue