Laravel Collection Public API: whereIn
The whereIn method filters a collection based on a specific key and an array of possible values for that key. By default, it checks the types of the values in the collection against the types in the given array. The method returns a new, modified collection without changing the original instance. To use whereIn, you simply call it on a...