| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | abstract class JsonRequest extends Request |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Determine if the user is authorized to make this request. |
||
| 14 | * |
||
| 15 | * @return bool |
||
| 16 | */ |
||
| 17 | public function authorize() |
||
| 18 | { |
||
| 19 | return true; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Handle a failed validation attempt. |
||
| 24 | * |
||
| 25 | * @param \Illuminate\Contracts\Validation\Validator $validator |
||
| 26 | * @return void |
||
| 27 | * |
||
| 28 | * @throws \Illuminate\Validation\ValidationException |
||
| 29 | */ |
||
| 30 | public function failedValidation(Validator $validator): void |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Get the validator instance for the request. |
||
| 37 | * |
||
| 38 | * @return \Illuminate\Validation\Validator |
||
| 39 | */ |
||
| 40 | protected function getValidatorInstance() |
||
| 60 | ); |
||
| 61 | } |
||
| 63 |