1 | <?php |
||
11 | class UserRequest extends FormRequest |
||
12 | { |
||
13 | /** |
||
14 | * Determine if the user is authorized to make this request. |
||
15 | * |
||
16 | * @return bool |
||
17 | */ |
||
18 | public function authorize() |
||
22 | |||
23 | /** |
||
24 | * Get the validation rules that apply to the request. |
||
25 | * @return array |
||
26 | */ |
||
27 | public function rules() |
||
33 | |||
34 | /** |
||
35 | * Get the error messages for the defined validation rules. |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function messages() |
||
47 | |||
48 | protected function failedValidation(Validator $validator) |
||
52 | } |
||
53 |