You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
775 B

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Request;
  4. class OrderOfflineRequest extends BaseFormRequest
  5. {
  6. /**
  7. * Determine if the user is authorized to make this request.
  8. */
  9. public function authorize(): bool
  10. {
  11. return true;
  12. }
  13. /**
  14. * Get the validation rules that apply to the request.
  15. */
  16. public function rules(): array
  17. {
  18. return [
  19. 'store_id' => 'required|nonempty|integer',
  20. 'user_id' => 'required|nonempty|integer',
  21. 'money' => 'required|nonempty',
  22. ];
  23. }
  24. public function messages(): array
  25. {
  26. return [
  27. '*.*' => ':attribute 参数异常'
  28. ];
  29. }
  30. public function attributes(): array
  31. {
  32. return [
  33. ];
  34. }
  35. }