Test for truth
This commit is contained in:
parent
9d8ee8a44e
commit
9222b72c7e
1 changed files with 1 additions and 1 deletions
|
|
@ -255,7 +255,7 @@ class MultiDB
|
|||
{
|
||||
|
||||
if (! config('ninja.db.multi_db_enabled'))
|
||||
return (Company::on($db)->whereSubdomain($subdomain)->exists() === true);
|
||||
return (Company::whereSubdomain($subdomain)->exists() === true);
|
||||
|
||||
foreach (self::$dbs as $db) {
|
||||
if ($company = Company::on($db)->whereSubdomain($subdomain)->first()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue