diff --git a/src/TenantManager.php b/src/TenantManager.php index 9144d2f4..5fe60e90 100644 --- a/src/TenantManager.php +++ b/src/TenantManager.php @@ -259,6 +259,10 @@ class TenantManager public function endTenancy(): self { + if (! $this->initialized) { + return $this; + } + $prevented = $this->event('ending'); foreach ($this->tenancyBootstrappers($prevented) as $bootstrapper) {