$rule
$rule :
留言回复验证 User: shirne Date: 2018/4/29 Time: 10:04
<?php
namespace app\admin\validate;
/**
* 留言回复验证
* User: shirne
* Date: 2018/4/29
* Time: 10:04
*/
class FeedbackValidate extends \think\Validate
{
protected $rule = [
'reply' => 'require|max:250'
];
protected $message = [
'reply.require' => '名称必须',
'reply.max' => '名称最多不能超过250个字符'
];
}