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:
commit
b3902bcf29
34 changed files with 453 additions and 144 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue