2016-03-25 01:18:05 -07: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 = [
|
2021-01-26 12:10:54 -08:00
|
|
|
\App\Http\Middleware\NoSessionStore::class,
|
2016-12-14 07:56:01 -08:00
|
|
|
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
|
2016-03-25 01:18:05 -07:00
|
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
2016-06-16 02:44:38 -07:00
|
|
|
\Fideloper\Proxy\TrustProxies::class,
|
2018-07-05 15:36:59 -07:00
|
|
|
\App\Http\Middleware\CheckForSetup::class,
|
2016-11-29 00:08:20 -08:00
|
|
|
\App\Http\Middleware\CheckForDebug::class,
|
2019-02-12 22:08:38 -08:00
|
|
|
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
|
2020-06-22 22:31:01 -07:00
|
|
|
\App\Http\Middleware\SecurityHeaders::class,
|
2021-10-04 12:52:48 -07:00
|
|
|
\App\Http\Middleware\PreventBackHistory::class,
|
2022-02-23 11:06:19 -08:00
|
|
|
\Fruitcake\Cors\HandleCors::class,
|
2020-06-22 22:31:01 -07:00
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The application's route middleware groups.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $middlewareGroups = [
|
|
|
|
'web' => [
|
|
|
|
\App\Http\Middleware\EncryptCookies::class,
|
|
|
|
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
|
|
|
\App\Http\Middleware\VerifyCsrfToken::class,
|
|
|
|
\App\Http\Middleware\CheckLocale::class,
|
2022-03-29 05:44:53 -07:00
|
|
|
\App\Http\Middleware\CheckUserIsActivated::class,
|
2016-10-29 05:50:55 -07:00
|
|
|
\App\Http\Middleware\CheckForTwoFactor::class,
|
2016-12-14 10:53:01 -08:00
|
|
|
\Laravel\Passport\Http\Middleware\CreateFreshApiToken::class,
|
2020-11-24 12:15:07 -08:00
|
|
|
\App\Http\Middleware\AssetCountForSidebar::class,
|
2016-03-25 01:18:05 -07:00
|
|
|
],
|
|
|
|
|
|
|
|
'api' => [
|
2017-01-11 14:54:11 -08:00
|
|
|
'auth:api',
|
2016-03-25 01:18:05 -07:00
|
|
|
],
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The application's route middleware.
|
|
|
|
*
|
|
|
|
* These middleware may be assigned to groups or used individually.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $routeMiddleware = [
|
2017-01-11 14:54:11 -08:00
|
|
|
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
|
2016-03-25 01:18:05 -07:00
|
|
|
'authorize' => \App\Http\Middleware\CheckPermissions::class,
|
|
|
|
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
2016-12-19 11:04:28 -08:00
|
|
|
'can' => \Illuminate\Auth\Middleware\Authorize::class,
|
2016-03-25 01:18:05 -07:00
|
|
|
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
|
|
|
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
|
|
|
];
|
|
|
|
}
|