*/ protected $middleware = [ CheckForMaintenanceMode::class, ValidatePostSize::class, TrimStrings::class, ConvertEmptyStringsToNull::class, TrustProxies::class, Cors::class, ]; /** * The application's route middleware groups. * * @var array> */ protected $middlewareGroups = [ 'web' => [ SessionDomains::class, EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, ShareErrorsFromSession::class, VerifyCsrfToken::class, SubstituteBindings::class, QueryLogging::class, ], 'api' => [ 'bindings', 'query_logging', ], 'contact' => [ 'throttle:60,1', 'bindings', 'query_logging', ], 'client' => [ SessionDomains::class, EncryptCookies::class, AddQueuedCookiesToResponse::class, StartSession::class, // \Illuminate\Session\Middleware\AuthenticateSession::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 $middlewareAliases = [ 'auth' => Authenticate::class, 'auth.basic' => AuthenticateWithBasicAuth::class, 'bindings' => SubstituteBindings::class, 'cache.headers' => SetCacheHeaders::class, 'can' => Authorize::class, 'cors' => Cors::class, 'guest' => RedirectIfAuthenticated::class, 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::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, 'portal_enabled' => ClientPortalEnabled::class, 'url_db' => UrlSetDb::class, 'web_db' => SetWebDb::class, 'api_db' => SetDb::class, 'company_key_db' => SetDbByCompanyKey::class, 'locale' => Locale::class, 'vendor_locale' => VendorLocale::class, 'contact_register' => ContactRegister::class, 'verify_hash' => VerifyHash::class, 'phantom_secret' => PhantomSecret::class, 'contact_key_login' => ContactKeyLogin::class, 'vendor_contact_key_login' => VendorContactKeyLogin::class, 'check_client_existence' => CheckClientExistence::class, 'user_verified' => UserVerified::class, 'document_db' => SetDocumentDb::class, 'session_domain' => SessionDomains::class, //we dyanamically add the throttle middleware in RouteServiceProvider ]; protected $middlewarePriority = [ EncryptCookies::class, StartSession::class, SessionDomains::class, Cors::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, ContactRegister::class, PhantomSecret::class, CheckClientExistence::class, ClientPortalEnabled::class, PasswordProtection::class, Locale::class, SubstituteBindings::class, ContactAccount::class, ]; }