1 | <?php |
||
10 | abstract class JsonApiRequest extends FormRequest |
||
11 | { |
||
12 | /** |
||
13 | * Format the errors from the given Validator instance. |
||
14 | * |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | protected function formatErrors(Validator $validator) |
||
35 | |||
36 | /** |
||
37 | * Get the proper failed validation response for the request. |
||
38 | * |
||
39 | * @param array $errors |
||
40 | * |
||
41 | * @return JsonApiResponse |
||
42 | */ |
||
43 | public function response(array $errors) |
||
47 | } |
||
48 |