2018-06-22 19:44:21 +02: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 = [
|
|
|
|
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
|
|
|
|
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
|
|
|
|
\App\Http\Middleware\TrimStrings::class,
|
|
|
|
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
|
|
|
|
\App\Http\Middleware\TrustProxies::class,
|
2018-08-09 11:14:04 +02:00
|
|
|
\App\Http\Middleware\ResponseHeaders::class,
|
2018-08-08 09:52:53 +02:00
|
|
|
\App\Http\Middleware\TerminateHandler::class,
|
2018-06-22 19:44:21 +02: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,
|
2019-11-07 09:45:01 +01:00
|
|
|
\App\Http\Middleware\TokenAuth::class,
|
2018-06-22 19:44:21 +02:00
|
|
|
// \Illuminate\Session\Middleware\AuthenticateSession::class,
|
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
|
|
|
\App\Http\Middleware\VerifyCsrfToken::class,
|
|
|
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
2018-09-11 09:56:31 +02:00
|
|
|
\App\Http\Middleware\HttpsRedirect::class,
|
2018-11-26 11:11:44 +01:00
|
|
|
\App\Http\Middleware\Localize::class,
|
2020-01-08 07:44:29 +01:00
|
|
|
\App\Http\Middleware\LogoutIfDeleted::class,
|
2019-07-03 13:00:55 +02:00
|
|
|
\App\Http\Middleware\CustomHandle::class,
|
2018-06-22 19:44:21 +02:00
|
|
|
],
|
|
|
|
|
2020-10-06 09:27:32 +02:00
|
|
|
// 'api' => [
|
|
|
|
// 'throttle:60,1',
|
|
|
|
// 'bindings',
|
|
|
|
// ],
|
2018-06-22 19:44:21 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The application's route middleware.
|
|
|
|
*
|
|
|
|
* These middleware may be assigned to groups or used individually.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $routeMiddleware = [
|
2018-07-24 08:34:28 +02:00
|
|
|
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
|
2018-06-22 19:44:21 +02:00
|
|
|
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
2018-07-24 08:34:28 +02: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,
|
2018-08-02 18:17:13 +02:00
|
|
|
'roles' => \App\Http\Middleware\CheckRole::class,
|
2018-06-22 19:44:21 +02:00
|
|
|
];
|
|
|
|
}
|