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

Reverted change

This commit is contained in:
Nuradiyana 2020-03-05 12:08:27 +07:00
parent e6280837cb
commit 68b74642c8

View file

@ -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']