Collection whereStrict(string $key, mixed $value) Filter items by the given key value pair using strict comparison. Parameters string $key mixed $value Return Value Collection
Collection zip(mixed $items) Zip the collection together with one or more arrays. e.g. new Collection([1, 2, 3])->zip([4, 5, 6]); => [[1, 4], [2, 5], [3, 6]] Parameters mixed $items Return Value Collection
Collection whereIn(string $key, mixed $values, bool $strict = false) Filter items by the given key value pair. Parameters string $key mixed $values bool $strict Return Value Collection
Collection where(string $key, mixed $operator, mixed $value = null) Filter items by the given key value pair. Parameters string $key mixed $operator mixed $value Return Value Collection
Collection values() Reset the keys on the underlying array. Return Value Collection
Collection uniqueStrict(string|callable|null $key = null) Return only unique items from the collection array using strict comparison. Parameters string|callable|null $key Return Value Collection
Collection union(mixed $items) Union the collection with the given items. Parameters mixed $items Return Value Collection
Collection unique(string|callable|null $key = null, bool $strict = false) Return only unique items from the collection array. Parameters string|callable|null $key bool $strict Return Value Collection
array toArray() Get the collection of items as a plain array. Return Value array
$this transform(callable $callback) Transform each item in the collection using a callback. Parameters callable $callback Return Value $this
Page 153 of 996