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

        return $this;
    }
public function addOptions(array $choices)
    {
        collect($choices)->map(function ($choice) {
            $this->field['choices']->push($choice);
        });

        return $this;
    }
public function addOptions ( array $ choices ) { collect ( $ choices ) -> map ( function ( $ choice ) { $ this -> field [ 'choices' ] -> push ( $ choice ) ; } ) ; return $ this ; }
Set the available choices for a select field as an array of key value pairs
taken directly from a supplied array

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