NoticeValidate.php 328 B

123456789101112131415161718192021222324
  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 NoticeValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'title|标题' => 'require|max:32',
  17. 'content|内容' => 'require',
  18. ];
  19. }