diff --git a/src/helpers.php b/src/helpers.php index 3f7f98ab..67acd2fb 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -21,7 +21,7 @@ if (! function_exists('tenant')) { /** * Get a key from the current tenant's storage. * - * @param string|Closure|null $key + * @param string|null $key * @return Tenant|mixed */ function tenant($key = null) @@ -30,10 +30,6 @@ if (! function_exists('tenant')) { return app(Tenant::class); } - if ($key instanceof Closure) { - return app(Tenant::class)->run($key); - } - return optional(app(Tenant::class))->get($key) ?? null; } }