Replies: 1 comment 4 replies
-
3 years later and i cannot find a simple way to do that, i also migrated from laravel |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example I have a validation schema as follows:
If the "required" rule is not passed it will display the following messages:
How to replace field name with custom field name.
For example I want to replace "fullname" with "Full name" and "email" with "Email address".
Of course I can change it manually in the following way:
But I don't think it's an "elegant" way.
I migrated from Laravel to Adonis because I think the concept is similar. In laravel there is a way to do this, see https://laravel.com/docs/8.x/validation#customizing-the-validation-attributes
Is there some kind of way to do it in adonis without having to "hard coded" the message ?
Beta Was this translation helpful? Give feedback.
All reactions