You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
352 B
PHTML
19 lines
352 B
PHTML
3 years ago
|
<?php
|
||
|
namespace app\admin\validate;
|
||
|
|
||
|
use think\Validate;
|
||
|
|
||
|
/**
|
||
|
* 插件验证器
|
||
|
* @package app\admin\validate
|
||
|
* @author 蔡伟明 <314013107@qq.com>
|
||
|
*/
|
||
|
class Plugin extends Validate
|
||
|
{
|
||
|
//定义验证规则
|
||
|
protected $rule = [
|
||
|
'name|插件名称' => 'require|unique:admin_plugin',
|
||
|
'title|插件标题' => 'require',
|
||
|
];
|
||
|
}
|