I'm trying to validate input number from GET parameter with this rule - integer|min:1|max:100. The value itself is a string '200' since it's coming from $_GET. In this case all rules pass, but I was hoping max:100 would fail. Do you have a suggestion how to force min/max rules to treat value as a number?
I'm trying to validate input number from GET parameter with this rule -
integer|min:1|max:100. The value itself is a string'200'since it's coming from$_GET. In this case all rules pass, but I was hopingmax:100would fail. Do you have a suggestion how to force min/max rules to treat value as a number?