[ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, ShareErrorsFromSession::class, SubstituteBindings::class, ], 'api' => [ SubstituteBindings::class, EnsureFrontendRequestsAreStateful::class, ], ]; /** * The application's route middleware. * * These middleware may be assigned to groups or used individually. * * @var array */ protected $routeMiddleware = [ 'auth' => Authenticate::class, 'auth.basic' => AuthenticateWithBasicAuth::class, 'bindings' => SubstituteBindings::class, 'can' => Authorize::class, 'throttle' => ThrottleRequests::class, 'abilities' => CheckAbilities::class, 'ability' => CheckForAnyAbility::class, 'signed' => ValidateSignature::class, ]; }