1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 06:34:04 +00:00

Merge branch 'master' into 515-complete

This commit is contained in:
Samuel Štancl 2022-10-25 12:54:21 +02:00
commit b3902bcf29
34 changed files with 453 additions and 144 deletions

View file

@ -195,7 +195,9 @@ class DatabaseConfig
/** @var Contracts\TenantDatabaseManager $databaseManager */
$databaseManager = app($databaseManagers[$driver]);
$databaseManager->setConnection($this->getTemplateConnectionName());
if ($databaseManager instanceof Contracts\StatefulTenantDatabaseManager) {
$databaseManager->setConnection($this->getTemplateConnectionName());
}
return $databaseManager;
}