Collection::pluck()

Collection pluck(string $value, string|null $key = null) Get the values of a given key. Parameters string $value string|null $key Return Value Collection

Collection::pluck()

Collection pluck(string $value, string|null $key = null) Get an array with the values of a given key. Parameters string $value string|null $key Return Value Collection

Collection::pipe()

mixed pipe(callable $callback) Pass the collection to the given callback and return the result. Parameters callable $callback Return Value mixed

Collection::pipe()

mixed pipe(callable $callback) Pass the collection to the given callback and return the result. Parameters callable $callback Return Value mixed

Collection::only()

Collection only(mixed $keys) Get the items with the specified keys. Parameters mixed $keys Return Value Collection

Collection::only()

Collection only(mixed $keys) Returns only the models from the collection with the specified keys. Parameters mixed $keys Return Value Collection

Collection::offsetUnset()

void offsetUnset(string $key) Unset the item at a given offset. Parameters string $key Return Value void

Collection::offsetUnset()

void offsetUnset(string $key) Unset the item at a given offset. Parameters string $key Return Value void

Collection::offsetSet()

void offsetSet(mixed $key, mixed $value) Set the item at a given offset. Parameters mixed $key mixed $value Return Value void

Collection::offsetSet()

void offsetSet(mixed $key, mixed $value) Set the item at a given offset. Parameters mixed $key mixed $value Return Value void