src/Field.php
public function addOption(Option ...$choices)
    {
        collect($choices)->map(function ($choice) {
            $this->field['choices']->push($choice->get());
        });

        return $this;
    }
public function addOption(Option ...$choices)
    {
        collect($choices)->map(function ($choice) {
            $this->field['choices']->push($choice->get());
        });

        return $this;
    }
public function addOption ( Option ... $ choices ) { collect ( $ choices ) -> map ( function ( $ choice ) { $ this -> field [ 'choices' ] -> push ( $ choice -> get ( ) ) ; } ) ; return $ this ; }
Set the available choices for a select field as an array of key value pairs

@param Option $choices
@return Agencms\Core\Field
Set the available choices for a select field as an array of key value pairs