Skip to content

Commit

Permalink
Merge pull request #25 from BinarCode/2.4.2
Browse files Browse the repository at this point in the history
2.4.2
  • Loading branch information
binaryk authored Jul 11, 2023
2 parents 094cd6c + 07de2f9 commit 1a1eb37
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 1a1eb37

Please sign in to comment.