Вход Регистрация
Файл: app/Http/Kernel.php
Строк: 109
<?php

namespace AppHttp;

use 
IlluminateFoundationHttpKernel as HttpKernel;

class 
Kernel extends HttpKernel
{
    
/**
     * The application's global HTTP middleware stack.
     *
     * These middleware are run during every request to your application.
     *
     * @var array
     */
    
protected $middleware = [
        
// AppHttpMiddlewareTrustHosts::class,
        
AppHttpMiddlewareTrustProxies::class,
        
IlluminateHttpMiddlewareHandleCors::class,
        
AppHttpMiddlewarePreventRequestsDuringMaintenance::class,
        
IlluminateFoundationHttpMiddlewareValidatePostSize::class,
        
AppHttpMiddlewareTrimStrings::class,
        
IlluminateFoundationHttpMiddlewareConvertEmptyStringsToNull::class
    ];

    
/**
     * The application's route middleware groups.
     *
     * @var array
     */
    
protected $middlewareGroups = [
        
'web' => [
            
AppHttpMiddlewareEncryptCookies::class,
            
IlluminateCookieMiddlewareAddQueuedCookiesToResponse::class,
            
IlluminateSessionMiddlewareStartSession::class,
            
IlluminateSessionMiddlewareAuthenticateSession::class,
            
IlluminateViewMiddlewareShareErrorsFromSession::class,
            
AppHttpMiddlewareVerifyCsrfToken::class,
            
IlluminateRoutingMiddlewareSubstituteBindings::class,

            
AppHttpMiddlewareLocaleMiddleware::class,
        ],

        
'api' => [
            
// LaravelSanctumHttpMiddlewareEnsureFrontendRequestsAreStateful::class,
            
'throttle:60,1',
            
IlluminateRoutingMiddlewareSubstituteBindings::class,

            
AppHttpMiddlewareLocaleMiddleware::class,
        ],
    ];

    
/**
     * The application's route middleware.
     *
     * These middleware may be assigned to groups or used individually.
     *
     * @var array
     */
    
protected $routeMiddleware = [
        
'auth' => AppHttpMiddlewareAuthenticate::class,
        
'auth.basic' => IlluminateAuthMiddlewareAuthenticateWithBasicAuth::class,
        
'auth.session' => IlluminateSessionMiddlewareAuthenticateSession::class,
        
'cache.headers' => IlluminateHttpMiddlewareSetCacheHeaders::class,
        
'can' => IlluminateAuthMiddlewareAuthorize::class,
        
'guest' => AppHttpMiddlewareRedirectIfAuthenticated::class,
        
'password.confirm' => IlluminateAuthMiddlewareRequirePassword::class,
        
'signed' => IlluminateRoutingMiddlewareValidateSignature::class,
        
'throttle' => IlluminateRoutingMiddlewareThrottleRequests::class,
        
'verified' => IlluminateAuthMiddlewareEnsureEmailIsVerified::class,

        
'admin' => AppHttpMiddlewareAdminMiddleware::class,
        
'payment' => AppHttpMiddlewareVerifyPaymentEnabledMiddleware::class,
        
'license' => AppHttpMiddlewareLicenseMiddleware::class,
        
'install' => AppHttpMiddlewareInstallMiddleware::class,
        
'api.guard' => AppHttpMiddlewareApiGuardMiddleware::class,
    ];

    
/**
     * The priority-sorted list of middleware.
     *
     * This forces non-global middleware to always be in the given order.
     *
     * @var array
     */
    
protected $middlewarePriority = [
        
IlluminateSessionMiddlewareStartSession::class,
        
IlluminateViewMiddlewareShareErrorsFromSession::class,
        
AppHttpMiddlewareAuthenticate::class,
        
IlluminateSessionMiddlewareAuthenticateSession::class,
        
IlluminateRoutingMiddlewareSubstituteBindings::class,
        
IlluminateAuthMiddlewareAuthorize::class,
    ];
}
Онлайн: 5
Реклама