GreenCate.php 218 B

123456789101112131415
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. class GreenCate extends Validate{
  5. protected $rule = [
  6. 'title|名称' => 'require|length:1,30',
  7. 'img|图标' => 'require',
  8. ];
  9. }