*/ protected $middleware = [ TrustHosts::class, TrustProxies::class, HandleCors::class, PreventRequestsDuringMaintenance::class, ValidatePostSize::class, TrimStrings::class, ConvertEmptyStringsToNull::class, ]; /** * The application's route middleware groups. * * @var array> */ protected $middlewareGroups = [ 'web' => [ 'htmlsanitize', EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, SecureHeaders::class, ], 'saml' => [ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, ], 'api' => [ 'throttle:40,1', ThrottleRequests::class . ':api', SubstituteBindings::class, ], ]; /** * The application's route middleware. * * These middleware may be assigned to groups or used individually. * * @var array */ protected $middlewareAliases = [ 'auth' => Authenticate::class, 'auth.basic' => AuthenticateWithBasicAuth::class, 'auth.session' => AuthenticateSession::class, 'cache.headers' => SetCacheHeaders::class, 'can' => Authorize::class, 'guest' => RedirectIfAuthenticated::class, 'password.confirm' => RequirePassword::class, 'signed' => ValidateSignature::class, 'throttle' => ThrottleRequests::class, 'htmlsanitize' => HtmlSanitizer::class, 'logoutusers' => LogoutUnpublishedUsers::class, 'golden.period' => RedirectToGoldenIfVoteOpen::class, ]; }