2017-01-30 20:40:43 +01:00
|
|
|
<?php
|
|
|
|
namespace App\Http;
|
2015-03-12 01:44:39 +01:00
|
|
|
|
2017-03-21 14:41:01 +01:00
|
|
|
|
2015-03-12 01:44:39 +01:00
|
|
|
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
|
|
|
|
2017-01-30 17:05:31 +01:00
|
|
|
class Kernel extends HttpKernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The application's global HTTP middleware stack.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $middleware = [
|
|
|
|
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
|
|
|
|
'Illuminate\Cookie\Middleware\EncryptCookies',
|
|
|
|
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
|
|
|
|
'Illuminate\Session\Middleware\StartSession',
|
|
|
|
'Illuminate\View\Middleware\ShareErrorsFromSession',
|
|
|
|
'App\Http\Middleware\VerifyCsrfToken',
|
2015-04-22 21:21:04 +02:00
|
|
|
'App\Http\Middleware\DuplicateSubmissionCheck',
|
2017-01-30 17:05:31 +01:00
|
|
|
'App\Http\Middleware\QueryLogging',
|
2016-09-11 16:30:23 +02:00
|
|
|
'App\Http\Middleware\StartupCheck',
|
2017-01-30 17:05:31 +01:00
|
|
|
];
|
2015-03-12 01:44:39 +01:00
|
|
|
|
2017-01-30 17:05:31 +01:00
|
|
|
/**
|
|
|
|
* The application's route middleware.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $routeMiddleware = [
|
2017-05-01 08:50:10 +02:00
|
|
|
'lookup' => 'App\Http\Middleware\DatabaseLookup',
|
2017-01-30 17:05:31 +01:00
|
|
|
'auth' => 'App\Http\Middleware\Authenticate',
|
|
|
|
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
|
|
|
|
'permissions.required' => 'App\Http\Middleware\PermissionsRequired',
|
|
|
|
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
|
2015-04-02 15:06:16 +02:00
|
|
|
'api' => 'App\Http\Middleware\ApiCheck',
|
2017-03-21 14:41:01 +01:00
|
|
|
'cors' => '\Barryvdh\Cors\HandleCors',
|
2017-01-30 17:05:31 +01:00
|
|
|
];
|
2015-03-12 01:44:39 +01:00
|
|
|
}
|