Kernel.php (1945B)
1 <?php 2 3 namespace App\Http; 4 5 use Illuminate\Foundation\Http\Kernel as HttpKernel; 6 7 class Kernel extends HttpKernel 8 { 9 /** 10 * The application's global HTTP middleware stack. 11 * 12 * These middleware are run during every request to your application. 13 * 14 * @var array 15 */ 16 protected $middleware = [ 17 \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class, 18 \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, 19 \App\Http\Middleware\TrimStrings::class, 20 \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, 21 \App\Http\Middleware\TrustProxies::class, 22 ]; 23 24 /** 25 * The application's route middleware groups. 26 * 27 * @var array 28 */ 29 protected $middlewareGroups = [ 30 'web' => [ 31 \App\Http\Middleware\EncryptCookies::class, 32 \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 33 \Illuminate\Session\Middleware\StartSession::class, 34 // \Illuminate\Session\Middleware\AuthenticateSession::class, 35 \Illuminate\View\Middleware\ShareErrorsFromSession::class, 36 \App\Http\Middleware\VerifyCsrfToken::class, 37 \Illuminate\Routing\Middleware\SubstituteBindings::class, 38 ], 39 40 'api' => [ 41 'throttle:60,1', 42 'bindings', 43 ], 44 ]; 45 46 /** 47 * The application's route middleware. 48 * 49 * These middleware may be assigned to groups or used individually. 50 * 51 * @var array 52 */ 53 protected $routeMiddleware = [ 54 'authorize' => \App\Http\Middleware\CheckSession::class, 55 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 56 'can' => \Illuminate\Auth\Middleware\Authorize::class, 57 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 58 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 59 ]; 60 }