mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 17:54:03 +00:00
Update DatabaseConfig.php
This commit is contained in:
parent
b8e0a1c982
commit
8bde0a7ecb
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ class DatabaseConfig
|
|||
// Laravel caches the previous PDO connection, so we purge it to be able to change the connection details
|
||||
$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
|
||||
// Create the tenant host connection config
|
||||
$tenantHostConnectionName = $this->getTenantHostConnectionName();
|
||||
config(["database.connections.{$tenantHostConnectionName}" => $this->hostConnection()]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue