mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 01:44:04 +00:00
Update DatabaseConfig.php
This commit is contained in:
parent
e5e8686872
commit
8f7bb0c1a8
1 changed files with 1 additions and 0 deletions
|
|
@ -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()]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue