Radar.php 491 字节
<?php

namespace app\admin\validate;

use think\Validate;

class Radar extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'title'=>  'require|max:4',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'title.require' => '名称必填',
        'title.max' => '长度不超过4个字符',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['title'],
        'edit' => ['title'],
    ];
    
}