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 = [
|
2024-08-22 10:45:53 -07:00
|
|
|
\App\Http\Middleware\TrustProxies::class,
|
2021-01-26 12:10:54 -08:00
|
|
|
\App\Http\Middleware\NoSessionStore::class,
|
2021-06-10 13:17:04 -07:00
|
|
|
\Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance::class,
|
2016-03-25 01:18:05 -07:00
|
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::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,
|
2024-08-20 03:45:13 -07:00
|
|
|
\App\Http\Middleware\TrimStrings::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,
|
2023-07-31 06:07:12 -07:00
|
|
|
\Illuminate\Http\Middleware\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,
|
2022-08-25 12:24:26 -07:00
|
|
|
\Illuminate\Session\Middleware\AuthenticateSession::class,
|
2024-07-17 15:02:10 -07:00
|
|
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
2016-03-25 01:18:05 -07:00
|
|
|
],
|
|
|
|
|
|
|
|
'api' => [
|
2017-01-11 14:54:11 -08:00
|
|
|
'auth:api',
|
2024-08-16 04:39:59 -07:00
|
|
|
\App\Http\Middleware\CheckLocale::class,
|
2024-07-17 15:02:10 -07:00
|
|
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
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,
|
|
|
|
];
|
|
|
|
}
|