Customizing Error Messages in Validation Rules #48904
Unanswered
chamyeongdo
asked this question in
General
Replies: 1 comment
-
At some point, Hope, that helps! |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create custom error messages.
For instance, there's a rule called 'different'. I was able to customize the error message for 'different' as follows:
Reference gist: https://gist.github.com/johnhout/055d2c039cfb7574d657#file-validation-php-L41
I used the
:other
parameter to write the error message. However, I haven't been able to find any reference in the official documentation or in the source code that explains how the:other
value is provided.Also, for the
dimensions
rule, I noticed that parameters like:max_width
,:max_height
are provided.But I couldn't find any information about this in any part of the official documentation either.
Beta Was this translation helpful? Give feedback.
All reactions