Collection chunk(int $size) Chunk the underlying collection array. Parameters int $size Return Value Collection
mixed avg(callable|string|null $callback = null) Get the average value of a given key. Parameters callable|string|null $callback Return Value mixed
mixed average(callable|string|null $callback = null) Alias for the "avg" method. Parameters callable|string|null $callback Return Value mixed
array all() Get all of the items in the collection. Return Value array
$this add(mixed $item) Add an item to the collection. Parameters mixed $item Return Value $this
Collection class Collection implements ArrayAccess, Arrayable, Countable, IteratorAggregate, Jsonable, JsonSerializable (View source) Traits Macroable
Page 850 of 996