forked from mirrors/easyappointments
Added the success prop to the json exception response payload
This commit is contained in:
parent
4bec35d70c
commit
c495cd8225
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue