From 4ef285061a42a8049c4cab625ba97094ffbec83b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 23 Jan 2019 21:00:11 +0100 Subject: [PATCH] Return null if key is not found in TenantManager->tenant --- src/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.php b/src/helpers.php index 09ba118f..0041f131 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -6,7 +6,7 @@ if (! function_exists('tenancy')) { function tenancy($key = null) { if ($key) { - return app(TenantManager::class)->tenant[$key]; + return app(TenantManager::class)->tenant[$key] ?? null; } return app(TenantManager::class);