Arr::except()

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

Arr::flatten()

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

Arr::first()

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

Arr::forget()

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

Arr::divide()

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

Arr::add()

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

Arr::collapse()

static array collapse(array $array) Collapse an array of arrays into a single array. Parameters array $array Return Value array

Arr::accessible()

static bool accessible(mixed $value) Determine whether the given value is array accessible. Parameters mixed $value Return Value bool

Arr

Arr class Arr (View source) Traits Macroable

AppNameCommand::__construct()

void __construct(Composer $composer, Filesystem $files) Create a new key generator command. Parameters Composer $composer Filesystem $files Return Value void