Fix standardized exception formatter for correct payload

This commit is contained in:
snipe 2017-10-24 17:57:49 -07:00
parent 680ad676ca
commit 35da7906cc

View file

@ -67,7 +67,7 @@ class Handler extends ExceptionHandler
}
if ($e instanceof \Illuminate\Validation\ValidationException) {
return response()->json(Helper::formatStandardApiResponse('error', $e->response['messages'], $e->getMessage(), 400));
return response()->json(Helper::formatStandardApiResponse('error', null, $e->response['messages'], 400));
}
if ($this->isHttpException($e)) {