mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-04 14:22:48 +08:00
删除 Model类的rule属性 验证规则支持直接传入提示信息 采用 [field,rule,msg] 的方式定义 所有验证规则只在 值不为空的时候进行验证 除非使用require规则
This commit is contained in:
@@ -54,8 +54,6 @@ class Model
|
||||
protected $scope = [];
|
||||
// 字段映射定义
|
||||
protected $map = [];
|
||||
// 字段验证规则定义
|
||||
protected $rule = [];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
Reference in New Issue
Block a user