mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 06:54:03 +00:00
Tenant-specific connections, some work to get tests running
This commit is contained in:
parent
e25a01a997
commit
c65b6839ff
13 changed files with 162 additions and 67 deletions
|
|
@ -64,14 +64,13 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
$this->app->singleton($bootstrapper);
|
||||
}
|
||||
|
||||
// todo are these necessary?
|
||||
$this->app->singleton(Migrate::class, function ($app) {
|
||||
$this->app->singleton(Commands\Migrate::class, function ($app) {
|
||||
return new Commands\Migrate($app['migrator'], $app[DatabaseManager::class]);
|
||||
});
|
||||
$this->app->singleton(Rollback::class, function ($app) {
|
||||
$this->app->singleton(Commands\Rollback::class, function ($app) {
|
||||
return new Commands\Rollback($app['migrator'], $app[DatabaseManager::class]);
|
||||
});
|
||||
$this->app->singleton(Seed::class, function ($app) {
|
||||
$this->app->singleton(Commands\Seed::class, function ($app) {
|
||||
return new Commands\Seed($app['db'], $app[DatabaseManager::class]);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue