mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
Bind bootstrappers properly
This commit is contained in:
parent
d9f4ba133a
commit
8c69d7847e
1 changed files with 1 additions and 2 deletions
|
|
@ -107,9 +107,8 @@ class TenancyServiceProvider extends ServiceProvider
|
||||||
return $app[TenantManager::class]->currentTenant();
|
return $app[TenantManager::class]->currentTenant();
|
||||||
});
|
});
|
||||||
|
|
||||||
// todo foreach bootstrappers, singleton
|
|
||||||
foreach ($this->app['config']['tenancy.bootstrappers'] as $bootstrapper) {
|
foreach ($this->app['config']['tenancy.bootstrappers'] as $bootstrapper) {
|
||||||
$this->app->singleton($bootstrapper); // todo key?
|
$this->app->singleton($bootstrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->app->singleton(Migrate::class, function ($app) {
|
$this->app->singleton(Migrate::class, function ($app) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue