mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 01:14:03 +00:00
Default databaseName
This commit is contained in:
parent
86f6cae245
commit
70e6679678
1 changed files with 2 additions and 1 deletions
|
|
@ -114,9 +114,10 @@ class DatabaseConfig
|
|||
{
|
||||
$templateConnection = config("database.connections.{$this->getTemplateConnectionName()}");
|
||||
|
||||
$databaseName = $this->getName();
|
||||
if (($manager = $this->manager()) instanceof ModifiesDatabaseNameForConnection) {
|
||||
/** @var ModifiesDatabaseNameForConnection $manager */
|
||||
$databaseName = $manager->getDatabaseNameForConnection($this->getName());
|
||||
$databaseName = $manager->getDatabaseNameForConnection($databaseName);
|
||||
}
|
||||
|
||||
return array_merge($templateConnection, $this->tenantConfig(), [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue