Skip to content

Commit

Permalink
fix: forget tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk committed Jul 11, 2023
1 parent 094cd6c commit 07de2f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Models/Tenant.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 07de2f9

Please sign in to comment.