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