mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 09:34:04 +00:00
Refactor models & config
This commit is contained in:
parent
f0ff8248e7
commit
2839f45196
9 changed files with 123 additions and 97 deletions
|
|
@ -36,7 +36,6 @@ class TenantDatabaseManagerTest extends TestCase
|
|||
|
||||
config()->set([
|
||||
"tenancy.database.managers.$driver" => $databaseManager,
|
||||
'tenancy.internal_prefix' => 'tenancy_',
|
||||
]);
|
||||
|
||||
$name = 'db' . $this->randomString();
|
||||
|
|
@ -65,8 +64,6 @@ class TenantDatabaseManagerTest extends TestCase
|
|||
return $event->tenant;
|
||||
})->toListener());
|
||||
|
||||
config(['tenancy.internal_prefix' => 'tenancy_']);
|
||||
|
||||
$database = 'db' . $this->randomString();
|
||||
|
||||
$mysqlmanager = app(MySQLDatabaseManager::class);
|
||||
|
|
@ -113,7 +110,6 @@ class TenantDatabaseManagerTest extends TestCase
|
|||
}
|
||||
config([
|
||||
'database.connections.fooconn.driver' => 'sqlite',
|
||||
'tenancy.internal_prefix' => 'tenancy_',
|
||||
]);
|
||||
|
||||
$tenant = Tenant::create([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue