StoreBrandValidate.php 488 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020-03-26
  7. *
  8. *
  9. */
  10. namespace app\validate\admin;
  11. use think\Validate;
  12. class StoreBrandValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'brand_category_id|父级分类' => 'require|integer',
  17. 'brand_name|名称' => 'require|max:32',
  18. 'is_show|状态' => 'require|in:0,1',
  19. 'sort|排序' => 'require|integer',
  20. 'pic|图标' => 'max:128'
  21. ];
  22. }