SyntaxFix
Write A Post
Hire A Developer
Questions
Laravel min and max validation do not work properly with a numeric rule validation. Instead of numeric, min and max, Laravel provided a rule digits_between.
min
max
numeric
numeric, min and max
digits_between
$this->validate($request,[ 'field_name'=>'digits_between:2,5', ]);