Would be great if you could also customize the key for the exceptions. For example we would want this:
{
"success": false,
"code": 115,
"locale": "sv",
"message": "The given data was invalid.",
"data": {
"messages": {
"page": [
"The page field is required."
]
}
},
}
to become like this below. But cant find any way to achieve this. Is this possible?
{
"success": false,
"code": 115,
"locale": "sv",
"message": "The given data was invalid.",
"errors": {
"messages": {
"page": [
"The page field is required."
]
}
},
}
Would be great if you could also customize the key for the exceptions. For example we would want this:
to become like this below. But cant find any way to achieve this. Is this possible?