Added the success prop to the json exception response payload

This commit is contained in:
Alex Tselegidis 2021-10-27 11:19:45 +02:00
parent 4bec35d70c
commit c495cd8225

View file

@ -138,6 +138,7 @@ if ( ! function_exists('json_exception'))
function json_exception(Throwable $exception)
{
json_response([
'success' => FALSE,
'message' => $exception->getMessage(),
'trace' => config('debug') ? $exception->getTrace() : []
], 500);