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.

32 lines
574 B

5 years ago
  1. <?php
  2. namespace App\Request\v3;
  3. use App\Request\BaseFormRequest;
  4. class EmployeesRequest extends BaseFormRequest
  5. {
  6. /**
  7. * Get the validation rules that apply to the request.
  8. */
  9. public function rules(): array
  10. {
  11. return [
  12. 'employees_id' => 'required|nonempty|integer',
  13. ];
  14. }
  15. /**
  16. * @return array
  17. */
  18. public function messages(): array
  19. {
  20. return [
  21. '*.*' => ':attribute无效',
  22. ];
  23. }
  24. public function attributes(): array
  25. {
  26. return parent::attributes();
  27. }
  28. }