Skip to content

Commit 1a1eb37

Browse files
authored
Merge pull request #25 from BinarCode/2.4.2
2.4.2
2 parents 094cd6c + 07de2f9 commit 1a1eb37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Models/Tenant.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ public function forget(): Tenantable
8787
"database.connections.{$tenantConnectionName}.database" => null,
8888
]);
8989

90+
app()->forgetInstance($this->containerKey());
91+
92+
app()->forgetInstance(Tenantable::class);
93+
9094
DB::purge($tenantConnectionName);
9195

9296
return $this;

0 commit comments

Comments
 (0)