2017-08-27 04:44:53 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\Kernel 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 = [
|
2020-05-23 22:17:07 +09:00
|
|
|
\App\Http\Middleware\TrustProxies::class,
|
2020-05-23 20:32:24 +09:00
|
|
|
\App\Http\Middleware\CheckForMaintenanceMode::class,
|
2017-08-27 04:44:53 +09:00
|
|
|
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
|
|
|
|
\App\Http\Middleware\TrimStrings::class,
|
|
|
|
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The application's route middleware groups.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $middlewareGroups = [
|
|
|
|
'web' => [
|
|
|
|
\App\Http\Middleware\EncryptCookies::class,
|
|
|
|
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
|
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
// \Illuminate\Session\Middleware\AuthenticateSession::class,
|
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
|
|
|
\App\Http\Middleware\VerifyCsrfToken::class,
|
|
|
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
2019-03-14 00:43:31 +09:00
|
|
|
\App\Http\Middleware\NormalizeLineEnding::class,
|
2017-08-27 04:44:53 +09:00
|
|
|
],
|
|
|
|
|
|
|
|
'api' => [
|
2020-08-08 15:15:26 +09:00
|
|
|
\App\Http\Middleware\EnforceJson::class,
|
2020-07-19 23:04:10 +09:00
|
|
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
|
|
|
],
|
|
|
|
|
|
|
|
'stateful' => [
|
2019-04-05 23:07:43 +09:00
|
|
|
\App\Http\Middleware\EncryptCookies::class,
|
|
|
|
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
|
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
\App\Http\Middleware\VerifyCsrfToken::class,
|
2020-07-19 23:04:10 +09:00
|
|
|
]
|
2017-08-27 04:44:53 +09:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The application's route middleware.
|
|
|
|
*
|
|
|
|
* These middleware may be assigned to groups or used individually.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $routeMiddleware = [
|
2020-05-23 21:34:49 +09:00
|
|
|
'auth' => \App\Http\Middleware\Authenticate::class,
|
2017-08-27 04:44:53 +09:00
|
|
|
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
|
|
|
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
|
2020-05-23 20:32:24 +09:00
|
|
|
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
|
2017-08-27 04:44:53 +09:00
|
|
|
'can' => \Illuminate\Auth\Middleware\Authorize::class,
|
|
|
|
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
2020-05-23 23:09:55 +09:00
|
|
|
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
|
2020-05-23 20:32:24 +09:00
|
|
|
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
|
2017-08-27 04:44:53 +09:00
|
|
|
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
2020-05-23 21:34:49 +09:00
|
|
|
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The priority-sorted list of middleware.
|
|
|
|
*
|
|
|
|
* This forces non-global middleware to always be in the given order.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $middlewarePriority = [
|
2020-08-23 16:56:35 +09:00
|
|
|
\App\Http\Middleware\EncryptCookies::class,
|
2020-05-23 21:34:49 +09:00
|
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
|
|
|
\App\Http\Middleware\Authenticate::class,
|
2020-05-23 23:09:55 +09:00
|
|
|
\Illuminate\Routing\Middleware\ThrottleRequests::class,
|
2020-05-23 21:34:49 +09:00
|
|
|
\Illuminate\Session\Middleware\AuthenticateSession::class,
|
|
|
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
|
|
|
\Illuminate\Auth\Middleware\Authorize::class,
|
2017-08-27 04:44:53 +09:00
|
|
|
];
|
|
|
|
}
|