1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 20:54:04 +00:00

Merge branch '515-complete' of https://github.com/abrardev99/tenancy into 515-complete

This commit is contained in:
Abrar Ahmad 2022-09-28 16:36:24 +05:00
commit f97651e16b

View file

@ -205,8 +205,7 @@ class DatabaseConfig
/** Get the TenantDatabaseManager for this tenant's connection. */
public function hostManager(): Contracts\TenantDatabaseManager
{
// DB cache the previous connection configurations and changing the connection configuration does not work
// So we purge the previous host connection before changing it
// 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