UserUpdate.php 565 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Http\Requests\User;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. class UserUpdate extends FormRequest
  5. {
  6. /**
  7. * Get the validation rules that apply to the request.
  8. *
  9. * @return array
  10. */
  11. public function rules()
  12. {
  13. return [
  14. 'remind_expire' => 'in:0,1',
  15. 'remind_traffic' => 'in:0,1'
  16. ];
  17. }
  18. public function messages()
  19. {
  20. return [
  21. 'show.in' => '过期提醒格式不正确',
  22. 'renew.in' => '流量提醒格式不正确'
  23. ];
  24. }
  25. }