protected function getSelectHtmlField(Field $field, ValidationParser $parser)
    {
        $stub = $this->getStubContent('form-selectmenu-field.blade', $this->template);

        $fieldName = ($field->isMultipleAnswers()) ? $this->getFieldNameAsArray($field->name) : $field->name;
        $optionValue = $this->getFieldValue($field->htmlValue, $field->name);

        $this->replaceFieldName($stub, $fieldName)
            ->replaceFieldItems($stub, $this->getFieldItems($field))
            ->replaceFieldMultiple($stub, $field->isMultipleAnswers())
            ->replaceFieldValue($stub, $optionValue)
            ->replaceSelectedValue($stub, $this->getSelectedValueForMenu($field))
            ->replaceFieldItem($stub, $this->getFieldItem($field))
            ->replaceFieldItemAccessor($stub, $this->getFieldItemAccessor($field))
            ->replaceFieldValueAccessor($stub, $this->getFieldValueAccessor($field))
            ->replaceFieldRequired($stub, $parser->isRequired())
            ->replaceFieldPlaceHolder($stub, $this->getFieldPlaceHolderForMenu($field->getPlaceholder(), $field->name))
            ->replaceCssClass($stub, $field->cssClass)
            ->wrapField($stub, $field);

        return $stub;
    }
protected function getSelectHtmlField(Field $field, ValidationParser $parser)
    {
        $stub = $this->getStubContent('form-selectmenu-field.blade', $this->template);

        $fieldName = ($field->isMultipleAnswers()) ? $this->getFieldNameAsArray($field->name) : $field->name;
        $optionValue = $this->getFieldValue($field->htmlValue, $field->name);

        $this->replaceFieldName($stub, $fieldName)
            ->replaceFieldItems($stub, $this->getFieldItems($field))
            ->replaceFieldMultiple($stub, $field->isMultipleAnswers())
            ->replaceFieldValue($stub, $optionValue)
            ->replaceSelectedValue($stub, $this->getSelectedValueForMenu($field))
            ->replaceFieldItem($stub, $this->getFieldItem($field))
            ->replaceFieldItemAccessor($stub, $this->getFieldItemAccessor($field))
            ->replaceFieldValueAccessor($stub, $this->getFieldValueAccessor($field))
            ->replaceFieldRequired($stub, $parser->isRequired())
            ->replaceFieldPlaceHolder($stub, $this->getFieldPlaceHolderForMenu($field->getPlaceholder(), $field->name))
            ->replaceCssClass($stub, $field->cssClass)
            ->wrapField($stub, $field);

        return $stub;
    }
protected function getSelectHtmlField ( Field $ field , ValidationParser $ parser ) { $ stub = $ this -> getStubContent ( 'form-selectmenu-field.blade' , $ this -> template ) ; $ fieldName = ( $ field -> isMultipleAnswers ( ) ) ? $ this -> getFieldNameAsArray ( $ field -> name ) : $ field -> name ; $ optionValue = $ this -> getFieldValue ( $ field -> htmlValue , $ field -> name ) ; $ this -> replaceFieldName ( $ stub , $ fieldName ) -> replaceFieldItems ( $ stub , $ this -> getFieldItems ( $ field ) ) -> replaceFieldMultiple ( $ stub , $ field -> isMultipleAnswers ( ) ) -> replaceFieldValue ( $ stub , $ optionValue ) -> replaceSelectedValue ( $ stub , $ this -> getSelectedValueForMenu ( $ field ) ) -> replaceFieldItem ( $ stub , $ this -> getFieldItem ( $ field ) ) -> replaceFieldItemAccessor ( $ stub , $ this -> getFieldItemAccessor ( $ field ) ) -> replaceFieldValueAccessor ( $ stub , $ this -> getFieldValueAccessor ( $ field ) ) -> replaceFieldRequired ( $ stub , $ parser -> isRequired ( ) ) -> replaceFieldPlaceHolder ( $ stub , $ this -> getFieldPlaceHolderForMenu ( $ field -> getPlaceholder ( ) , $ field -> name ) ) -> replaceCssClass ( $ stub , $ field -> cssClass ) -> wrapField ( $ stub , $ field ) ; return $ stub ; }
Gets creates an select menu html field for a given field.

@param CrestApps\CodeGeneraotor\Support\Field $field
@param CrestApps\CodeGeneraotor\Support\ValidationParser $parser

@return string
Gets creates an select menu html field for a given field .