forked from XiaoLFeng/XF_Index
AddFeature: 添加管理员页面判断别名页面判断
添加 authConsole 别名判断 Signed-off-by: XiaoLFeng <gm@x-lf.cn>
This commit is contained in:
parent
6597cbcaca
commit
70e9146212
|
@ -8,6 +8,7 @@
|
|||
namespace App\Http;
|
||||
|
||||
use App\Http\Middleware\Authenticate;
|
||||
use App\Http\Middleware\CheckConsoleUser;
|
||||
use App\Http\Middleware\EncryptCookies;
|
||||
use App\Http\Middleware\RedirectIfAuthenticated;
|
||||
use App\Http\Middleware\VerifyCsrfToken;
|
||||
|
@ -76,6 +77,7 @@ class Kernel extends HttpKernel
|
|||
* @var array<string, class-string|string>
|
||||
*/
|
||||
protected $routeMiddleware = [
|
||||
'authConsole' => CheckConsoleUser::class,
|
||||
'auth' => Authenticate::class,
|
||||
'auth.basic' => AuthenticateWithBasicAuth::class,
|
||||
'cache.headers' => SetCacheHeaders::class,
|
||||
|
|
Loading…
Reference in New Issue
Block a user