mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-15 16:44:04 +00:00
WIP DatabaseManager
This commit is contained in:
parent
ab0a40a17e
commit
04b4e0644f
7 changed files with 27 additions and 11 deletions
|
|
@ -37,7 +37,7 @@ class TenantModel extends Model
|
|||
|
||||
public function getConnectionName()
|
||||
{
|
||||
return config('tenancy.storage.db.connection');
|
||||
return config('tenancy.storage.db.connection') ?? app(DatabaseManager::class)->originalDefaultConnectionName;
|
||||
}
|
||||
|
||||
public static function getAllTenants(array $uuids)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue