I got used to request to validate before entering the API side function itself, but recently, when I moved the controller function to services then, the error message became like the below sample.
{
"message": "validation.min.string",
"errors": {
"password": [
"validation.min.string"
]
}
}
But when I use the same way build in the new project, the error message show as usual as below
{ "message": "The name must only contain letters.", "errors": { "name": [ "The name must only contain letters." ] } }
I found that I had added an en language file under res resources\lang\en,
which caused this issue, so may I know how I can change back to this version without removing the en file? Thanks