use exception status

This commit is contained in:
Taylor Otwell 2017-07-19 17:26:48 -05:00
parent c2e3cb9065
commit 396634857e
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ protected function invalidJson($request, ValidationException $exception)
return response()->json([
'message' => $exception->getMessage(),
'errors' => $exception->errors(),
], 422);
], $exception->status);
}
/**