mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 13:54:04 +00:00
Reverted change
This commit is contained in:
parent
e6280837cb
commit
68b74642c8
1 changed files with 2 additions and 2 deletions
|
|
@ -111,9 +111,9 @@ class DatabaseManager
|
||||||
* Get the name of the connection that $connectionName should be based on.
|
* Get the name of the connection that $connectionName should be based on.
|
||||||
*
|
*
|
||||||
* @param string $connectionName
|
* @param string $connectionName
|
||||||
* @return string|null
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getBaseConnection(string $connectionName): ?string
|
public function getBaseConnection(string $connectionName): string
|
||||||
{
|
{
|
||||||
return ($connectionName !== 'tenant' ? $connectionName : null) // 'tenant' is not a specific connection, it's the default
|
return ($connectionName !== 'tenant' ? $connectionName : null) // 'tenant' is not a specific connection, it's the default
|
||||||
?? $this->app['config']['tenancy.database.based_on']
|
?? $this->app['config']['tenancy.database.based_on']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue