1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:04:03 +00:00
This commit is contained in:
Samuel Štancl 2019-08-15 16:50:16 +02:00
parent c6ebc09a9d
commit b4dc02772f

View file

@ -35,8 +35,8 @@ class Install extends Command
$this->info('✔️ Created config/tenancy.php'); $this->info('✔️ Created config/tenancy.php');
file_put_contents(app_path('Http/Kernel.php'), str_replace( file_put_contents(app_path('Http/Kernel.php'), str_replace(
'protected $middlewarePriority = [', "protected \$middlewarePriority = [",
'protected $middlewarePriority = [\n \Stancl\Tenancy\Middleware\InitializeTenancy::class', "protected \$middlewarePriority = [\n \Stancl\Tenancy\Middleware\InitializeTenancy::class",
file_get_contents(app_path('Http/Kernel.php')) file_get_contents(app_path('Http/Kernel.php'))
)); ));
$this->info('✔️ Set middleware priority'); $this->info('✔️ Set middleware priority');