I just need to check in Laravel validation that an array contains minimum 2 values and maximum 4 values. Is there any default validation rule can be used for this ? The size
element checks for exact size match and the other rules likes min
and max
are for strings, digits and file size.