blessing-skin-server/app/Http/Kernel.php

70 lines
2.4 KiB
PHP
Raw Normal View History

2016-08-28 10:05:21 +08: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,
2018-07-24 09:58:10 +08:00
\Illuminate\Foundation\Http\Middleware\TrimStrings::class,
\App\Http\Middleware\ConvertEmptyStringsToNull::class,
2019-04-25 13:01:39 +08:00
\App\Http\Middleware\DetectLanguagePrefer::class,
2016-08-28 10:05:21 +08:00
];
/**
* The application's route middleware groups.
*
* @var array
*/
protected $middlewareGroups = [
'web' => [
2019-04-26 00:01:32 +08:00
\App\Http\Middleware\EncryptCookies::class,
2016-08-28 10:05:21 +08:00
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
2019-04-22 21:09:36 +08:00
\App\Http\Middleware\ForbiddenIE::class,
2019-04-25 13:01:39 +08:00
\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class
2016-08-28 10:05:21 +08:00
],
2019-04-23 10:05:58 +08:00
'api' => [
'bindings',
],
2019-04-25 13:01:39 +08:00
'authorize' => [
'auth:web',
\App\Http\Middleware\RejectBannedUser::class,
\App\Http\Middleware\EnsureEmailFilled::class,
\App\Http\Middleware\FireUserAuthenticated::class,
],
2016-08-28 10:05:21 +08:00
];
/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array
*/
protected $routeMiddleware = [
2019-04-25 13:01:39 +08:00
'auth' => \App\Http\Middleware\Authenticate::class,
2019-04-23 10:05:58 +08:00
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
'verified' => \App\Http\Middleware\CheckUserVerified::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'admin' => \App\Http\Middleware\CheckAdministrator::class,
'super-admin' => \App\Http\Middleware\CheckSuperAdmin::class,
'player' => \App\Http\Middleware\CheckPlayerExist::class,
'setup' => \App\Http\Middleware\CheckInstallation::class,
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
2019-04-23 10:05:58 +08:00
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
2016-08-28 10:05:21 +08:00
];
}