When request is invalid, that return this response:
{
"message": "name را وارد کنید (and 2 more errors)",
"errors": {
"name": [
"name را وارد کنید"
],
"phone": [
"phone را وارد کنید"
],
"password": [
"password را وارد کنید"
]
}
}
But how to localize "(and 2 more errors)" to Persian?
It's currently hardcoded I'm afraid... https://github.com/laravel/framework/blob/9.x/src/Illuminate/Validation/ValidationException.php#L96
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.