From 4ff28c8fd887ccaaabd95f6403c25aac270306d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 23 Aug 2019 12:43:14 +0200 Subject: [PATCH] Switch order of middleware --- 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 408d4213..f753ed3c 100644 --- a/src/Commands/Install.php +++ b/src/Commands/Install.php @@ -37,8 +37,8 @@ class Install extends Command $newKernel = \str_replace( 'protected $middlewarePriority = [', "protected \$middlewarePriority = [ - \Stancl\Tenancy\Middleware\InitializeTenancy::class, - \Stancl\Tenancy\Middleware\PreventAccessFromTenantDomains::class", + \Stancl\Tenancy\Middleware\PreventAccessFromTenantDomains::class, + \Stancl\Tenancy\Middleware\InitializeTenancy::class,", \file_get_contents(app_path('Http/Kernel.php')) );