2015-07-08 03:34:58 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
|
|
|
|
|
|
|
class Kernel extends HttpKernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The application's global HTTP middleware stack.
|
|
|
|
*
|
2016-01-03 23:55:13 -05:00
|
|
|
* These middleware are run during every request to your application.
|
|
|
|
*
|
2015-07-08 03:34:58 -04:00
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $middleware = [
|
|
|
|
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
|
2017-01-26 19:17:37 -05:00
|
|
|
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
|
|
|
|
\App\Http\Middleware\TrimStrings::class,
|
|
|
|
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
|
2017-09-26 13:22:15 -04:00
|
|
|
\App\Http\Middleware\TrustProxies::class,
|
2016-01-03 23:55:13 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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,
|
2017-01-26 19:17:37 -05:00
|
|
|
// \Illuminate\Session\Middleware\AuthenticateSession::class,
|
2016-01-03 23:55:13 -05:00
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
|
|
|
\App\Http\Middleware\VerifyCsrfToken::class,
|
2016-08-19 16:38:49 -04:00
|
|
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
2016-01-03 23:55:13 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
'api' => [
|
2018-01-16 00:58:54 -05:00
|
|
|
'throttle:120,1',
|
2016-08-19 16:38:49 -04:00
|
|
|
'bindings',
|
2016-01-03 23:55:13 -05:00
|
|
|
],
|
2015-07-08 03:34:58 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The application's route middleware.
|
|
|
|
*
|
2016-01-03 23:55:13 -05:00
|
|
|
* These middleware may be assigned to groups or used individually.
|
|
|
|
*
|
2015-07-08 03:34:58 -04:00
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $routeMiddleware = [
|
2016-08-19 16:38:49 -04:00
|
|
|
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
|
2015-07-08 03:34:58 -04:00
|
|
|
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
2016-08-19 16:38:49 -04:00
|
|
|
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
|
|
|
|
'can' => \Illuminate\Auth\Middleware\Authorize::class,
|
|
|
|
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
|
|
|
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
2015-07-08 03:34:58 -04:00
|
|
|
];
|
|
|
|
}
|