Support the ongoing development of Laravel.io →
Forms Validation
Last updated 2 years ago.
0

min

The 'min' validation rule is the direct opposite of the 'max' rule. It can be used to ensure that a field value is greater than or equal to the provided parameter. If the field is a string, the parameter will refer to the length of the string in characters. For numerical values, the comparison will be made mathematically. For file upload fields the comparison will be made upon the size of the file in bytes.

size

The 'size' rule can be used to ensure that the value of the field is of a given size provided by the rule parameter. If the field is a string, the parameter will refer to the length of the string in characters. For numerical values, the comparison will be made mathematically. For file upload fields the comparison will be made upon the size of the file in bytes.

you can try the size. i hope it works....

Last updated 2 years ago.
0

Let me see. looks so silly.. in html we use min & max for chars in input..

without mentioning numeric it works as expected adding numeric now i understood it look for range. Thanks.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mahenn mahenn Joined 5 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.