mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 07:14:04 +00:00
DatabaseManager WIP
This commit is contained in:
parent
798df54d76
commit
41d8bb7e09
8 changed files with 125 additions and 78 deletions
|
|
@ -54,7 +54,7 @@ class Migrate extends MigrateCommand
|
|||
|
||||
// See Illuminate\Database\Migrations\DatabaseMigrationRepository::getConnection.
|
||||
// Database connections are cached by Illuminate\Database\ConnectionResolver.
|
||||
$connectionName = "tenant{$tenant['uuid']}";
|
||||
$connectionName = "tenant{$tenant['uuid']}"; // todo use Illuminate DatabaseManager reconnect()?
|
||||
$this->input->setOption('database', $connectionName);
|
||||
$this->database->connectToTenant($tenant, $connectionName);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue