@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | protected function failedValidation(Validator $validator) |
| 30 | 30 | { |
| 31 | 31 | |
| 32 | - if (strpos($this->path(),'api') !== false) { |
|
| 32 | + if (strpos($this->path(), 'api') !== false) { |
|
| 33 | 33 | $errors = (new ValidationException($validator))->errors(); |
| 34 | 34 | throw new HttpResponseException(response()->json(['success' => false, 'errors' => $errors, |
| 35 | 35 | ], JsonResponse::HTTP_UNPROCESSABLE_ENTITY)); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | parent::failedValidation($validator); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function rules(){ |
|
| 41 | - \App::setLocale($this->header('Language','en')); |
|
| 40 | + public function rules() { |
|
| 41 | + \App::setLocale($this->header('Language', 'en')); |
|
| 42 | 42 | } |
| 43 | 43 | } |