Collection map(callable $callback) Run a map over each of the items. Parameters callable $callback Return Value Collection
$this makeVisible(array|string $attributes) Make the given, typically hidden, attributes visible across the entire collection. Parameters array|string $attributes Return Value $this
$this makeHidden(array|string $attributes) Make the given, typically visible, attributes hidden across the entire collection. Parameters array|string $attributes Return Value $this
static Collection make(mixed $items = array()) Create a new collection instance if the value isn't one already. Parameters mixed $items Return Value Collection
static void macro(string $name, callable $macro) Register a custom macro. Parameters string $name callable $macro Return Value void
$this load(mixed $relations) Load a set of relationships onto the collection. Parameters mixed $relations Return Value $this
mixed last(callable $callback = null, mixed $default = null) Get the last item from the collection. Parameters callable $callback mixed $default Return Value mixed
Collection keys() Get the keys of the collection items. Return Value Collection
Collection keyBy(callable|string $keyBy) Key an associative array by a field or using a callback. Parameters callable|string $keyBy Return Value Collection
array jsonSerialize() Convert the object into something JSON serializable. Return Value array
Page 746 of 996