From b4dc02772f2f1a514a019aba2d9ccb8756e577d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Thu, 15 Aug 2019 16:50:16 +0200 Subject: [PATCH] wip --- src/Commands/Install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/Install.php b/src/Commands/Install.php index 3dc1bc33..189ec98d 100644 --- a/src/Commands/Install.php +++ b/src/Commands/Install.php @@ -35,8 +35,8 @@ class Install extends Command $this->info('✔️ Created config/tenancy.php'); file_put_contents(app_path('Http/Kernel.php'), str_replace( - 'protected $middlewarePriority = [', - 'protected $middlewarePriority = [\n \Stancl\Tenancy\Middleware\InitializeTenancy::class', + "protected \$middlewarePriority = [", + "protected \$middlewarePriority = [\n \Stancl\Tenancy\Middleware\InitializeTenancy::class", file_get_contents(app_path('Http/Kernel.php')) )); $this->info('✔️ Set middleware priority');