1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 19:14:04 +00:00

Array with global MW

This commit is contained in:
Samuel Štancl 2019-11-04 18:36:22 +01:00
parent 31c9930c93
commit 1ef061ffc7
2 changed files with 5 additions and 3 deletions

View file

@ -78,8 +78,8 @@ class TenancyServiceProvider extends ServiceProvider
__DIR__ . '/../assets/migrations/' => database_path('migrations'),
], 'migrations');
if ($this->app['config']['tenancy.push_initialization_middleware_to_global_stack'] ?? true) {
$this->app->make(Kernel::class)->prependMiddleware(Middleware\InitializeTenancy::class);
foreach ($this->app['config']['tenancy.global_middleware'] as $middleware) {
$this->app->make(Kernel::class)->prependMiddleware($middleware);
}
/*