mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 08:24:05 +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()}");
|
$templateConnection = config("database.connections.{$this->getTemplateConnectionName()}");
|
||||||
|
|
||||||
|
$databaseName = $this->getName();
|
||||||
if (($manager = $this->manager()) instanceof ModifiesDatabaseNameForConnection) {
|
if (($manager = $this->manager()) instanceof ModifiesDatabaseNameForConnection) {
|
||||||
/** @var ModifiesDatabaseNameForConnection $manager */
|
/** @var ModifiesDatabaseNameForConnection $manager */
|
||||||
$databaseName = $manager->getDatabaseNameForConnection($this->getName());
|
$databaseName = $manager->getDatabaseNameForConnection($databaseName);
|
||||||
}
|
}
|
||||||
|
|
||||||
return array_merge($templateConnection, $this->tenantConfig(), [
|
return array_merge($templateConnection, $this->tenantConfig(), [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue