AttachmentValidate.php 438 B

12345678910111213141516171819202122232425
  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 AttachmentValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'attachment_category_id|选择分类' => 'require|integer',
  17. 'attachment_name|附件名称' => 'require|max:255',
  18. 'attachment_src|分类目录' => 'require|max:255',
  19. ];
  20. }