| 1 | <?php |
||
| 19 | trait ThrowsApiErrors |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Handle a failed validation attempt. |
||
| 23 | * |
||
| 24 | * @param \Illuminate\Contracts\Validation\Validator $validator |
||
| 25 | * @return void |
||
| 26 | * @throws ValidationFailedException |
||
| 27 | */ |
||
| 28 | protected function failedValidation( Validator $validator ) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Handle a failed authorization attempt. |
||
| 35 | * |
||
| 36 | * @return void |
||
| 37 | * @throws UnauthorizedException |
||
| 38 | */ |
||
| 39 | protected function failedAuthorization() |
||
| 43 | } |