diff --git a/src/TenantManager.php b/src/TenantManager.php index 264f1f52..97226b62 100644 --- a/src/TenantManager.php +++ b/src/TenantManager.php @@ -306,7 +306,7 @@ class TenantManager return $this; } - $prevented = $this->event('ending', $this->getTenant()); + $prevented = $this->event('ending', $this->tenant); foreach ($this->tenancyBootstrappers($prevented) as $bootstrapper) { $this->app[$bootstrapper]->end();