Open tomoshim opened 3 years ago
@wireframeslayout
Can the milestone 0.7.0
accept this change?
@wireframeslayout
How about checking the length of ArrayLike
?
I mean ArrayLike
is an object with length
property, which is not array, for example NodeList for Web API.
It has some elements and can be iterable(looping with for
).
On Laravel,
required
can check length of Countable objects. I propose thatrequired
rejects if an empty array is given.https://readouble.com/laravel/8.x/ja/validation.html#rule-required