1
0
Fork 0
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:
Samuel Štancl 2019-08-17 21:25:53 +02:00
parent 29c8d5dab4
commit f87c2b69ec
2 changed files with 13 additions and 1 deletions

View file

@ -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)