<?php

namespace app\validate\admin\bot;

use think\Validate;

class Add extends Validate
{
    //数组顺序就是检测的顺序
    protected $rule = [
        'password' => 'confirm:re_password|min:6|max:26',
    ];

    //定义内置方法检验失败后返回的字符
    protected $message = [
        'password.confirm' => '两次密码输入不相同',
		'password.min' => '密码长度不能低于6个字符',
		'password.max' => '密码长度不能高于26个字符',
    ];
}