protected function getFieldOptions(array $options = [], $name = null)
    {
        $options['class'] = trim('form-control ' . $this->getFieldOptionsClass($options));

        // If we've been provided the input name and the ID has not been set in the options,
        // we'll use the name as the ID to hook it up with the label.
        if ($name && ! array_key_exists('id', $options)) {
            $options['id'] = $name;
        }

        return $options;
    }
protected function getFieldOptions(array $options = [], $name = null)
    {
        $options['class'] = trim('form-control ' . $this->getFieldOptionsClass($options));

        // If we've been provided the input name and the ID has not been set in the options,
        // we'll use the name as the ID to hook it up with the label.
        if ($name && ! array_key_exists('id', $options)) {
            $options['id'] = $name;
        }

        return $options;
    }
protected function getFieldOptions ( array $ options = [ ] , $ name = null ) { $ options [ 'class' ] = trim ( 'form-control ' . $ this -> getFieldOptionsClass ( $ options ) ) ; // If we've been provided the input name and the ID has not been set in the options, // we'll use the name as the ID to hook it up with the label. if ( $ name && ! array_key_exists ( 'id' , $ options ) ) { $ options [ 'id' ] = $ name ; } return $ options ; }
Merge the options provided for a field with the default options
required for Bootstrap styling.

@param  array  $options
@param  string $name
@return array
Merge the options provided for a field with the default options required for Bootstrap styling .