*/ protected $middleware = [ CheckForMaintenanceMode::class, ValidatePostSize::class, TrimStrings::class, ForceHttps::class, TrustHosts::class, ]; /** * The application's route middleware groups. * * @var array> */ protected $middlewareGroups = [ 'web' => [ EncryptCookies::class, AddQueuedCookiesToResponse::class, ShareErrorsFromSession::class, StartSession::class, VerifyCsrfToken::class, SubstituteBindings::class, ], 'api' => [ 'throttle:60,1', SubstituteBindings::class, ], ]; /** * The application's route middleware. * * @var array */ protected $routeMiddleware = [ 'auth' => Authenticate::class, 'audio.auth' => AudioAuthenticate::class, 'os.auth' => ObjectStorageAuthenticate::class, 'bindings' => SubstituteBindings::class, 'can' => Authorize::class, 'throttle' => ThrottleRequests::class, ]; }