AdminEditValidate.php 345 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 AdminEditValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'real_name|管理员姓名' => 'require|max:16',
  17. 'phone|手机号' => 'max:12',
  18. ];
  19. }