Validator showing duplicate messages #1312
-
When validating via the Standalone validator, I receive duplicate messages on my response
response:
If i comment the rules.required(). the username will still show that it is required, and, it is strange because only the required rule acts this way, does anybody know why ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
By default |
Beta Was this translation helpful? Give feedback.
-
Hmm, and what about updating ? How can I have optional rules when doing CRUD ? |
Beta Was this translation helpful? Give feedback.
By default
schema.string()
marks the field as required. So no need to specify that explicitly again.