1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:24:02 +00:00

Switch order of middleware

This commit is contained in:
Samuel Štancl 2019-08-23 12:43:14 +02:00
parent b611f10db7
commit 4ff28c8fd8

View file

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