mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 21:54:03 +00:00
parent
f950265f58
commit
e7b5a77a6b
3 changed files with 153 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ class DatabaseManager
|
|||
public function disconnect()
|
||||
{
|
||||
$default_connection = $this->originalDefaultConnection;
|
||||
$this->database->purge();
|
||||
$this->database->reconnect($default_connection);
|
||||
$this->database->setDefaultConnection($default_connection);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue