Merge pull request #663 from ladybirdweb/analysis-zDv975

Apply fixes from StyleCI
This commit is contained in:
Bhanu
2018-08-14 15:01:30 +05:30
committed by GitHub

View File

@@ -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) {