diff --git a/src/Models/Tenant.php b/src/Models/Tenant.php index 51957cf..d894ba0 100644 --- a/src/Models/Tenant.php +++ b/src/Models/Tenant.php @@ -87,6 +87,10 @@ public function forget(): Tenantable "database.connections.{$tenantConnectionName}.database" => null, ]); + app()->forgetInstance($this->containerKey()); + + app()->forgetInstance(Tenantable::class); + DB::purge($tenantConnectionName); return $this;