From 8f7bb0c1a81a640e919d29182013a3a5919d4801 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Mon, 26 Sep 2022 13:57:33 +0500 Subject: [PATCH] Update DatabaseConfig.php --- src/Database/DatabaseConfig.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Database/DatabaseConfig.php b/src/Database/DatabaseConfig.php index 418e4a91..b1b4aeef 100644 --- a/src/Database/DatabaseConfig.php +++ b/src/Database/DatabaseConfig.php @@ -209,6 +209,7 @@ class DatabaseConfig // So we purge the previous host connection before changing it $this->purgeHostConnection(); // todo come up with a better name + // Set the host connection configuration array fetched from the tenant's config and manipulated to form a connection $tenantHostConnectionName = $this->getTenantHostConnectionName(); config(["database.connections.{$tenantHostConnectionName}" => $this->hostConnection()]);