Laravel Collection Public API: where
where($key, $operator, $value = null) The where method allows developers to filter a collection given a key value pair. It filters the collection's items by checking that the given $key has some value equal to the provided $value . An argument can...