From 58fe1f7c32e11b5f97855f65a67cc00d83943c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 23 Aug 2019 22:11:05 +0200 Subject: [PATCH] wip --- src/Commands/Install.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Commands/Install.php b/src/Commands/Install.php index f53e71ce..ebd7550b 100644 --- a/src/Commands/Install.php +++ b/src/Commands/Install.php @@ -42,8 +42,8 @@ class Install extends Command \file_get_contents(app_path('Http/Kernel.php')) ); - $newKernel = \str_replace('protected $middleware = [', "protected \$middleware = [ - \Stancl\Tenancy\Middleware\PreventAccessFromTenantDomains::class,", $newKernel); + $newKernel = \str_replace("'web' => [", "'web' => [ + \Stancl\Tenancy\Middleware\PreventAccessFromTenantDomains::class,", $newKernel); \file_put_contents(app_path('Http/Kernel.php'), $newKernel); $this->info('✔️ Set middleware priority'); @@ -63,7 +63,7 @@ class Install extends Command | */ -Route::get('/your/application/homepage', function () { +Route::get('/', function () { return 'This is your multi-tenant application. The uuid of the current tenant is ' . tenant('uuid'); }); "