Get
class Get extends Mutator (View source)
Get value from array or object by key using dot-notation.
If the key is an array, it will be treated as a path to the value.
Ported and adapted from illuminate/collections
helper data_get
.
Methods
__construct(array|int|string $key, mixed $default = null)
No description
mixed
mutate(mixed $value)
Mutate the input value.
Details
__construct(array|int|string $key, mixed $default = null)
No description
static Get
make(array|int|string $key, mixed $default = null)
No description
mixed
mutate(mixed $value)
Mutate the input value.