1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 21:54:03 +00:00

Apply fixes from StyleCI

This commit is contained in:
stancl 2019-08-14 20:17:04 +00:00 committed by StyleCI Bot
parent 4aa35322da
commit 155ef0da5a
2 changed files with 4 additions and 2 deletions

View file

@ -105,7 +105,8 @@ final class DatabaseManager
config()->set(['database.connections.tenant.database' => $database_name]);
}
public function useConnection(string $connection) {
public function useConnection(string $connection)
{
$this->database->setDefaultConnection($connection);
$this->database->reconnect($connection);
}