catchAdmin/config/middleware.php

22 lines
1.0 KiB
PHP
Raw Normal View History

2018-11-16 17:45:37 +08:00
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 中间件配置
// +----------------------------------------------------------------------
return [
// 默认中间件命名空间
'default_namespace' => 'app\\http\\middleware\\',
'auth' => \think\permissions\PermissionMiddleware::class,
'checkLogin' => app\http\middleware\checkLogin::class,
2019-01-17 18:29:35 +08:00
'logRecord' => app\http\middleware\LogRecord::class,
2018-11-16 17:45:37 +08:00
];