diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 26e756f43..f0b0424e4 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -124,6 +124,7 @@ class Handler extends ExceptionHandler if ($e instanceof ValidationException) { return $this->invalidJson($request, $e); } + return response()->json(['error' => $e->getMessage()], 500); } if (config('app.debug') == true) {