phpvms/app/Http/Kernel.php

45 lines
1.6 KiB
PHP
Raw Normal View History

2017-06-09 02:28:26 +08:00
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
2017-06-09 02:28:26 +08:00
];
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\InstalledCheck::class,
2017-06-09 02:28:26 +08:00
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
2018-03-12 23:33:46 +08:00
\App\Http\Middleware\VerifyCsrfToken::class,
2017-06-09 02:28:26 +08:00
\Illuminate\Routing\Middleware\SubstituteBindings::class,
\Spatie\Pjax\Middleware\FilterIfPjax::class,
2017-06-09 02:28:26 +08:00
],
'api' => [
'throttle:60,1',
'bindings',
'json',
2017-06-09 02:28:26 +08:00
],
];
protected $routeMiddleware = [
'api.auth' => \App\Http\Middleware\ApiAuth::class,
2017-06-09 02:28:26 +08:00
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'json' => \App\Http\Middleware\JsonResponse::class,
2017-06-09 02:28:26 +08:00
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
];
}