Hi,
When you throw an exception API end, it converts it into a not so friendly "code" e.g.
If you do something like...
throw new PermissionDeniedException("You do not have permission to ban this user.")
The API response returns
{
"errors": [
{ "status": 403, "code": "permission_denied" }
],
}
How can we make sure the actual exception message gets included e.g. $exception->getMessage() like what normally happens in Laravel error responses?
Thanks