| 1 | <?php |
||
| 10 | class ContactFormRequest extends FormRequest |
||
| 11 | { |
||
| 12 | use Escaper; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Determine if the user is authorized to make this request. |
||
| 16 | * |
||
| 17 | * @return bool |
||
| 18 | */ |
||
| 19 | public function authorize(): bool |
||
| 20 | { |
||
| 21 | return true; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Prepare the data for validation. |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | protected function prepareForValidation(): void |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get the validation rules that apply to the request. |
||
| 41 | * |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | public function rules(): array |
||
| 51 | } |
||
| 52 |