Collection::has()

bool has(mixed $key) Determine if an item exists in the collection by key. Parameters mixed $key Return Value bool

Collection::has()

bool has(mixed $key) Determine if an item exists in the collection by key. Parameters mixed $key Return Value bool

Collection::hasMacro()

static bool hasMacro(string $name) Checks if macro is registered. Parameters string $name Return Value bool

Collection::hasMacro()

static bool hasMacro(string $name) Checks if macro is registered. Parameters string $name Return Value bool

Collection::groupBy()

Collection groupBy(callable|string $groupBy, bool $preserveKeys = false) Group an associative array by a field or using a callback. Parameters callable|string $groupBy bool $preserveKeys Return Value Collection

Collection::groupBy()

Collection groupBy(callable|string $groupBy, bool $preserveKeys = false) Group an associative array by a field or using a callback. Parameters callable|string $groupBy bool $preserveKeys Return Value Collection

Collection::getQueueableIds()

array getQueueableIds() Get the identifiers for all of the entities. Return Value array

Collection::getDictionary()

array getDictionary(ArrayAccess|array|null $items = null) Get a dictionary keyed by primary keys. Parameters ArrayAccess|array|null $items Return Value array

Collection::getQueueableClass()

string|null getQueueableClass() Get the type of the entities being queued. Return Value string|null

Collection::getIterator()

ArrayIterator getIterator() Get an iterator for the items. Return Value ArrayIterator