AdminEditValidate.php 273 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\validate\admin;
  3. use think\Validate;
  4. class AdminEditValidate extends Validate
  5. {
  6. protected $failException = true;
  7. protected $rule = [
  8. 'real_name|管理员姓名' => 'require|max:16',
  9. 'phone|手机号' => 'max:12',
  10. ];
  11. }