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
DatabaseNotificationCollection class DatabaseNotificationCollection extends Collection (View source) Traits Macroable
void __wakeup() When a model is being unserialized, check if it needs to be booted. Return Value void
void __unset(string $key) Unset an attribute on the model. Parameters string $key Return Value void
string __toString() Convert the model to its string representation. Return Value string
void __set(string $key, mixed $value) Dynamically set attributes on the model. Parameters string $key mixed $value Return Value void
Page 750 of 996