修改文件、类型显示
This commit is contained in:
1 parent
6f5ffeb8d7
commit
7e9310e4dd
254 files changed
+5412
-4872
No files matched your search
@@ -11,19 +11,30 @@ class SystemBase extends Validate
|
||||
* 格式:'字段名' => ['规则1','规则2'...]
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
*/
|
||||
protected $rule = [
|
||||
'id|ID' => 'require|number',
|
||||
'keywords|关键字' => 'require|length:2,60',
|
||||
'description|描述' => 'require|length:1,100',
|
||||
'thinks|感谢' => 'require|length:1,80',
|
||||
'danwei|单位' => 'require|length:2,80',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* 定义错误信息
|
||||
* 格式:'字段名.规则名' => '错误信息'
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
*/
|
||||
protected $message = [];
|
||||
|
||||
protected $scene = [
|
||||
'edit' => [
|
||||
'id'
|
||||
,'keywords'
|
||||
,'description'
|
||||
,'thinks'
|
||||
,'danwei'
|
||||
],
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user