AttachmentValidate.php 366 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\validate\admin;
  3. use think\Validate;
  4. class AttachmentValidate extends Validate
  5. {
  6. protected $failException = true;
  7. protected $rule = [
  8. 'attachment_category_id|选择分类' => 'require|integer',
  9. 'attachment_name|附件名称' => 'require|max:255',
  10. 'attachment_src|分类目录' => 'require|max:255',
  11. ];
  12. }