CustomScheduleRefuseOpportunityRequest.php 781 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace App\Http\Requests;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. class CustomScheduleRefuseOpportunityRequest extends FormRequest
  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. * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
  17. */
  18. public function rules(): array
  19. {
  20. $rules = [
  21. 'provider_id' => 'required|exists:providers,id',
  22. ];
  23. return $rules;
  24. }
  25. /**
  26. * Get custom messages for validator errors.
  27. */
  28. public function messages(): array
  29. {
  30. return [];
  31. }
  32. }