From 3cd97bdcab401d0e8cf074840c62f175a6ffd6a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 21 Sep 2019 11:39:31 +0200 Subject: [PATCH] Overwriting the connection doesn't matter, it just changes the DB --- src/DatabaseManager.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/DatabaseManager.php b/src/DatabaseManager.php index 389714bc..eca1cfcf 100644 --- a/src/DatabaseManager.php +++ b/src/DatabaseManager.php @@ -64,10 +64,8 @@ class DatabaseManager // Create the database connection. $based_on = $this->getBaseConnection($connectionName); $this->app['config']["database.connections.$connectionName"] = $this->app['config']['database.connections.' . $based_on]; - // todo don't overwrite database.connections.$connectionName // Change database name. - // todo tenant-specific connections without any DB name changes? $databaseName = $this->getDriver($connectionName) === 'sqlite' ? database_path($databaseName) : $databaseName; $this->app['config']["database.connections.$connectionName.database"] = $databaseName; }