mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 00:54:05 +00:00
Update src/Database/DatabaseConfig.php
Co-authored-by: Samuel Štancl <samuel@archte.ch>
This commit is contained in:
parent
677b62cf05
commit
0fc2a984ed
1 changed files with 1 additions and 2 deletions
|
|
@ -205,8 +205,7 @@ class DatabaseConfig
|
||||||
/** Get the TenantDatabaseManager for this tenant's connection. */
|
/** Get the TenantDatabaseManager for this tenant's connection. */
|
||||||
public function hostManager(): Contracts\TenantDatabaseManager
|
public function hostManager(): Contracts\TenantDatabaseManager
|
||||||
{
|
{
|
||||||
// DB cache the previous connection configurations and changing the connection configuration does not work
|
// Laravel caches the previous PDO connection, so we purge it to be able to change the connection details
|
||||||
// So we purge the previous host connection before changing it
|
|
||||||
$this->purgeHostConnection(); // todo come up with a better name
|
$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
|
// Set the host connection configuration array fetched from the tenant's config and manipulated to form a connection
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue