Time扩展添加教务管理表编写教务管理修改用户角色添加方式

This commit is contained in:
巴掌 committed 2018-10-31 16:57:15 +08:00
1 parent 8f7868665b
commit 8c1fbfd00a
56 files changed
+2564 -299

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
<?php
namespace app\teach\validate;
use think\Validate;
class Subject extends Validate
{
/**
* 定义验证规则
* 格式:'字段名' => ['规则1','规则2'...]
*
* @var array
*/
protected $rule = [
'title|名称' => 'require|length:1,25',
'jiancheng|简称' => 'require|length:1,6',
'category|分类' => 'require|number',
'paixu|排序' => 'number',
];
/**
* 定义错误信息
* 格式:'字段名.规则名' => '错误信息'
*
* @var array
*/
protected $message = [];
}