validate.stub 360 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace {%validateNamespace%};
  3. use think\Validate;
  4. class {%validateName%} extends Validate
  5. {
  6. /**
  7. * 验证规则
  8. */
  9. protected $rule = [
  10. ];
  11. /**
  12. * 提示消息
  13. */
  14. protected $message = [
  15. ];
  16. /**
  17. * 验证场景
  18. */
  19. protected $scene = [
  20. 'add' => [],
  21. 'edit' => [],
  22. ];
  23. }