[ EncryptCookies::class, AddQueuedCookiesToResponse::class, VerifyCsrfToken::class, CheckLocale::class, CheckUserIsActivated::class, CheckForTwoFactor::class, CreateFreshApiToken::class, AssetCountForSidebar::class, CheckColorSettings::class, AuthenticateSession::class, SubstituteBindings::class, ], 'api' => [ 'auth:api', CheckLocale::class, SubstituteBindings::class, ], 'health' => [ ], ]; /** * The application's route middleware. * * These middleware may be assigned to groups or used individually. * * @var array */ protected $routeMiddleware = [ 'auth' => Authenticate::class, 'authorize' => CheckPermissions::class, 'auth.basic' => AuthenticateWithBasicAuth::class, 'can' => Authorize::class, 'guest' => RedirectIfAuthenticated::class, 'throttle' => ThrottleRequests::class, 'api-throttle' => SetAPIResponseHeaders::class, 'health' => null, ]; }