From 92321aeb1e099845609ddd248e4abc9ce1d56a8f Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Mon, 12 Aug 2019 08:37:51 -0400 Subject: [PATCH] Make Inertia middleware last --- app/Http/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 6b68304..8c3250e 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -28,7 +28,6 @@ class Kernel extends HttpKernel */ protected $middlewareGroups = [ 'web' => [ - \Inertia\Middleware::class, \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, @@ -36,6 +35,7 @@ class Kernel extends HttpKernel \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, + \Inertia\Middleware::class, ], 'api' => [