First
class First extends Mutator (View source)
Retrieve the first element of an array. Optionally, a callback can be provided to filter the array.
If no element is found, null is returned.
Methods
__construct(callable $callback = null)
No description
mixed
mutate(mixed $value)
Mutate the input value.
Details
__construct(callable $callback = null)
No description
static First
make(callable $callback = null)
No description
mixed
mutate(mixed $value)
Mutate the input value.