From dbb17b3f12ffe986b878a079c9305f58a46d2e79 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Thu, 24 Mar 2022 15:08:46 +0100 Subject: [PATCH] Remove useless routeMiddlewares --- app/Http/Kernel.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index c7e1eb40..b4a48e6f 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -69,16 +69,9 @@ class Kernel extends HttpKernel */ protected $routeMiddleware = [ 'auth' => \App\Http\Middleware\Authenticate::class, - 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, - 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, - 'can' => \Illuminate\Auth\Middleware\Authorize::class, - 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, - 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, - 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, + 'guest' => \App\Http\Middleware\RejectIfAuthenticated::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, - 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 'AvoidResetPassword' => \App\Http\Middleware\AvoidPasswordResetInDemo::class, - 'Json.response' => \App\Http\Middleware\ForceJsonResponse::class, ]; /**