php - Laravel set between digits in validation -
in simple use rules of laravel validator want check input between 1 , 10.
this below role not work correctly , accept zero
'required|integer|digits_between:1,10'
or
'display_post_count' => 'required|min:1|max:10',
you seem using digits_between
need using between
(docs).
'item' => 'required|integer|between:1,10',
Comments
Post a Comment