From c49e9b7e39b5549d36c88ce40f0ccfaab0b52c9b Mon Sep 17 00:00:00 2001 From: Sergio Parejo Date: Wed, 15 Nov 2023 15:13:19 +0100 Subject: [PATCH] Fix connection config template array_merge parameter order --- src/DatabaseConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DatabaseConfig.php b/src/DatabaseConfig.php index c8280632..6bd8ced8 100644 --- a/src/DatabaseConfig.php +++ b/src/DatabaseConfig.php @@ -113,7 +113,7 @@ class DatabaseConfig $templateConnection = config("database.connections.{$template}"); return $this->manager()->makeConnectionConfig( - array_merge($templateConnection, $this->tenantConfig()), $this->getName() + array_merge($this->tenantConfig(), $templateConnection), $this->getName() ); }