[ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, // \Illuminate\Session\Middleware\AuthenticateSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, HandleInertiaRequests::class, ], 'api' => [ 'throttle:api', SubstituteBindings::class, ], ]; /** * The application's route middleware. * * These middlewares may be assigned to a group or used individually. * * @var array */ protected $routeMiddleware = [ 'auth' => Authenticate::class, 'auth.basic' => AuthenticateWithBasicAuth::class, 'cache.headers' => SetCacheHeaders::class, 'can' => Authorize::class, 'guest' => RedirectIfAuthenticated::class, 'password.confirm' => RequirePassword::class, 'signed' => ValidateSignature::class, 'throttle' => ThrottleRequests::class, 'verified' => EnsureEmailIsVerified::class, ]; }