use exception status
This commit is contained in:
parent
c2e3cb9065
commit
396634857e
|
@ -65,7 +65,7 @@ protected function invalidJson($request, ValidationException $exception)
|
|||
return response()->json([
|
||||
'message' => $exception->getMessage(),
|
||||
'errors' => $exception->errors(),
|
||||
], 422);
|
||||
], $exception->status);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue