<?php
/**
* @author 龙虾 <15108148@qq.com>
* @version 2.0 2020-08-06
* @copyright 睿谷信息 <www.rgxx.com>
*/
namespace app\admin\validate;
use think\Validate;

class Attr extends Validate
{
	
	protected $rule = [
		'title|内容名称'        => 'require|unique:attr,attrgroup_id^title',
		'attrgroup_id|属性'		=> 'require'
	];
}