新增配置

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

View File

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