You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@martinbean Yes I confirm that this is a bug, I'll submit a PR to fix it. Thank you for pointing this out.
@staudenmeir The purpose of these rules at first was to compare two attributes(input fields) against each other, then I extended the functionality to include comparing against values but it seems i forgot to check if you passed an attribute or a value in the ReplaceAttributes trait methods.
Description:
The
:value
attribute isn’t being replaced properly forgt
/gte
/lt
/lte
validation rules. When I specify a value, the error message always comes out as:Looking under the hood, it seems the replacer method is validating the size rather than the integer value of the parameter.
Steps To Reproduce:
Create a brand new application; placed this in a route:
Validation fails (as expected), but the error message is:
I expect:
The text was updated successfully, but these errors were encountered: