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

remove "ensuring connection exists" check

This commit is contained in:
Abrar Ahmad 2022-10-07 12:25:03 +05:00
parent 7f6166d49a
commit 7c4afc37d0

View file

@ -149,10 +149,7 @@ class DatabaseConfig
public function purgeHostConnection(): void
{
$tenantHostConnectionName = $this->getTenantHostConnectionName();
if (array_key_exists($tenantHostConnectionName, DB::getConnections())) {
DB::purge($tenantHostConnectionName);
}
DB::purge($tenantHostConnectionName);
}
/**