From 68b74642c842341c6a0345e910fb92dc6c4d0b2b Mon Sep 17 00:00:00 2001 From: Nuradiyana Date: Thu, 5 Mar 2020 12:08:27 +0700 Subject: [PATCH] Reverted change --- src/DatabaseManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DatabaseManager.php b/src/DatabaseManager.php index b2ed631a..0004ea69 100644 --- a/src/DatabaseManager.php +++ b/src/DatabaseManager.php @@ -111,9 +111,9 @@ class DatabaseManager * Get the name of the connection that $connectionName should be based on. * * @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 ?? $this->app['config']['tenancy.database.based_on']