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');