protected function failedValidation(Validator $validator) { throw new HttpResponseException(response()->json($validator->errors()->all(), 422)); }