[ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, QueryLogging::class, ], 'api' => [ 'throttle:300,1', 'bindings', 'query_logging', ], 'contact' => [ 'throttle:60,1', 'bindings', 'query_logging', ], 'client' => [ EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, QueryLogging::class, ], 'shop' => [ 'throttle:120,1', 'bindings', 'query_logging', ], ]; /** * 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, 'cache.headers' => SetCacheHeaders::class, 'can' => Authorize::class, 'guest' => RedirectIfAuthenticated::class, 'signed' => ValidateSignature::class, 'throttle' => ThrottleRequests::class, 'verified' => EnsureEmailIsVerified::class, 'query_logging' => QueryLogging::class, 'token_auth' => TokenAuth::class, 'api_secret_check' => ApiSecretCheck::class, 'contact_token_auth' => ContactTokenAuth::class, 'contact_db' => ContactSetDb::class, 'contact_account' => ContactAccount::class, 'domain_db' => SetDomainNameDb::class, 'email_db' => SetEmailDb::class, 'invite_db' => SetInviteDb::class, 'password_protected' => PasswordProtection::class, 'signed' => ValidateSignature::class, 'portal_enabled' => ClientPortalEnabled::class, 'url_db' => UrlSetDb::class, 'web_db' => SetWebDb::class, 'api_db' => SetDb::class, 'company_key_db' => SetDbByCompanyKey::class, 'locale' => Locale::class, 'contact.register' => ContactRegister::class, 'shop_token_auth' => ShopTokenAuth::class, 'phantom_secret' => PhantomSecret::class, 'contact_key_login' => ContactKeyLogin::class, 'check_client_existence' => CheckClientExistence::class, 'user_verified' => UserVerified::class, ]; protected $middlewarePriority = [ Cors::class, AddQueuedCookiesToResponse::class, VerifyCsrfToken::class, StartSession::class, SetDomainNameDb::class, SetDb::class, SetWebDb::class, UrlSetDb::class, ContactSetDb::class, SetEmailDb::class, SetInviteDb::class, SetDbByCompanyKey::class, TokenAuth::class, ContactTokenAuth::class, ContactKeyLogin::class, Authenticate::class, ShopTokenAuth::class, ContactRegister::class, PhantomSecret::class, CheckClientExistence::class, ClientPortalEnabled::class, PasswordProtection::class, Locale::class, SubstituteBindings::class, ContactAccount::class, ]; }