新增配置

This commit is contained in:
wuyanwen 2020-01-17 15:49:18 +08:00
parent 691518c8c8
commit c6c0446c4e

View File

@ -7,11 +7,15 @@ return [
'domain' => '', 'domain' => '',
/** /**
* set error page * 权限不验证 get 请求
*
*/ */
'error' => root_path('catch/index/view/') . 'error.html', 'is_allow_get' => true,
/**
* auth 认证
*
*/
'auth' => [ 'auth' => [
// 默认 // 默认
'default' => [ 'default' => [
@ -34,6 +38,10 @@ return [
], ],
], ],
/**
* 自定义验证规则
*
*/
'validates' => [ 'validates' => [
\catcher\validates\Sometimes::class, \catcher\validates\Sometimes::class,
], ],