src/Cornford/Bootstrapper/BootstrapBase.php
protected function options($name, $label = null, array $list = array(), $selected = null, $errors = null, array $options = array())
	{
		$return = '';
		$options = array_merge(array('class' => 'form-control', 'id' => $name), $options);
		$containerAttributes = $this->getContainerAttributes($options);
		$labelAttributes = $this->getLabelAttributes($options);

		if (!isset($containerAttributes['display'])) {
			$return .= $this->group($name, $errors, 'form-group', $containerAttributes);
		}

		$return .= $this->label($name, $label, $labelAttributes);

		if ($this->formType == self::FORM_HORIZONTAL) {
			$return .= $this->group('', null, $this->inputClass);
		}

		$return .= $this->form->select($name, $list, $selected, $options) . "\n";
		$return .= $this->errors($name, $errors);

		if ($this->formType == self::FORM_HORIZONTAL) {
			$return .= '</div>' . "\n";
		}

		if (!isset($containerAttributes['display'])) {
			$return .= '</div>' . "\n";
		}

		return $return;
	}
protected function options($name, $label = null, array $list = array(), $selected = null, $errors = null, array $options = array())
	{
		$return = '';
		$options = array_merge(array('class' => 'form-control', 'id' => $name), $options);
		$containerAttributes = $this->getContainerAttributes($options);
		$labelAttributes = $this->getLabelAttributes($options);

		if (!isset($containerAttributes['display'])) {
			$return .= $this->group($name, $errors, 'form-group', $containerAttributes);
		}

		$return .= $this->label($name, $label, $labelAttributes);

		if ($this->formType == self::FORM_HORIZONTAL) {
			$return .= $this->group('', null, $this->inputClass);
		}

		$return .= $this->form->select($name, $list, $selected, $options) . "\n";
		$return .= $this->errors($name, $errors);

		if ($this->formType == self::FORM_HORIZONTAL) {
			$return .= '</div>' . "\n";
		}

		if (!isset($containerAttributes['display'])) {
			$return .= '</div>' . "\n";
		}

		return $return;
	}
Create a form select field.

@param string                         $name
@param string                         $label
@param array                          $list
@param string                         $selected
@param \Illuminate\Support\MessageBag $errors
@param array                          $options

@return string