mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 18:04:03 +00:00
Default to default DB
This commit is contained in:
parent
29c8d5dab4
commit
f87c2b69ec
2 changed files with 13 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ class Tenant extends Model
|
|||
|
||||
public function getConnectionName()
|
||||
{
|
||||
return config('tenancy.storage.db.connection', 'central');
|
||||
return config('tenancy.storage.db.connection') ?: config('database.default');
|
||||
}
|
||||
|
||||
public static function getAllTenants(array $uuids)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue