mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 02:44:02 +00:00
Return null if key is not found in TenantManager->tenant
This commit is contained in:
parent
89c073a859
commit
4ef285061a
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ if (! function_exists('tenancy')) {
|
||||||
function tenancy($key = null)
|
function tenancy($key = null)
|
||||||
{
|
{
|
||||||
if ($key) {
|
if ($key) {
|
||||||
return app(TenantManager::class)->tenant[$key];
|
return app(TenantManager::class)->tenant[$key] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return app(TenantManager::class);
|
return app(TenantManager::class);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue