class Options extends Collection (View source)

Methods

static Options
fromArray(array $options)

Create a new options collection from the given array.

Details

static Options fromArray(array $options)

Create a new options collection from the given array.

This method accepts both ['value' => 'label'] and Option objects.

Parameters

array $options

Return Value

Options