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.

40 lines
755 B

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Request;
  4. class OnlineCancelRequest 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. 'order_id' => 'required|nonempty|integer|exists:ims_cjdc_order_main,id',
  20. ];
  21. }
  22. public function messages(): array
  23. {
  24. return [
  25. 'order_id.*' => ':attribute信息不正确',
  26. ];
  27. }
  28. public function attributes(): array
  29. {
  30. return [
  31. 'order_id' => '订单号',
  32. ];
  33. }
  34. }