protected function failedValidation(Validator $validator) { throw new HttpResponseException(response()->json([ 'errors' => $validator->errors(), 'status' => false ], 422)); }