static array except(array $array, array|string $keys) Get all of the given array except for a specified array of items. Parameters array $array array|string $keys Return Value array
static array flatten(array $array, int $depth = INF) Flatten a multi-dimensional array into a single level. Parameters array $array int $depth Return Value array
static mixed first(array $array, callable $callback = null, mixed $default = null) Return the first element in an array passing a given truth test. Parameters array $array callable $callback mixed $default Return Value mixed
static void forget(array $array, array|string $keys) Remove one or many array items from a given array using "dot" notation. Parameters array $array array|string $keys Return Value void
static array divide(array $array) Divide an array into two arrays. One with keys and the other with values. Parameters array $array Return Value array
static array add(array $array, string $key, mixed $value) Add an element to an array using "dot" notation if it doesn't exist. Parameters array $array string $key mixed $value Return Value array
static array collapse(array $array) Collapse an array of arrays into a single array. Parameters array $array Return Value array
static bool accessible(mixed $value) Determine whether the given value is array accessible. Parameters mixed $value Return Value bool
Arr class Arr (View source) Traits Macroable
void __construct(Composer $composer, Filesystem $files) Create a new key generator command. Parameters Composer $composer Filesystem $files Return Value void
Page 968 of 996