mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 21:54:03 +00:00
Fix event tests
This commit is contained in:
parent
a9c37d1535
commit
7e645a3312
3 changed files with 20 additions and 34 deletions
|
|
@ -82,6 +82,7 @@ class DatabaseManager
|
|||
|
||||
public function switchConnection($connection)
|
||||
{
|
||||
$this->app['config']['database.default'] = $connection;
|
||||
$this->database->purge();
|
||||
$this->database->reconnect($connection);
|
||||
$this->database->setDefaultConnection($connection);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue