mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 16:14:02 +00:00
Update DatabaseConfig.php
This commit is contained in:
parent
45db7e6592
commit
dd3e3476aa
1 changed files with 3 additions and 2 deletions
|
|
@ -153,9 +153,10 @@ class DatabaseConfig
|
|||
$databaseManager = app(Database\DatabaseManager::class);
|
||||
$tenantHostConnectionName = $this->getTenantHostConnectionName();
|
||||
$databaseManager->purge($tenantHostConnectionName);
|
||||
// if (array_key_exists($tenantHostConnectionName, $databaseManager->getConnections())) {
|
||||
|
||||
// }
|
||||
if (array_key_exists($tenantHostConnectionName, $databaseManager->getConnections())) {
|
||||
$databaseManager->purge($tenantHostConnectionName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue