protected function wrapField(&$fieldStub, Field $field, $standardLabel = true, $required = '')
    {
        $stub = $this->getStubContent('form-input-wrapper.blade', $this->template);

        $this->replaceFieldName($stub, $field->name)
            ->replaceCssClass($stub, $field->cssClass)
            ->replaceFieldLabel($stub, $this->getLabelFromField($standardLabel ? $field : null))
            ->replaceFieldValidationHelper($stub, $this->getNewHelper($field))
            ->replaceFieldInput($stub, $fieldStub)
            ->replaceRequiredClass($stub, $required);

        $fieldStub = $stub;

        return $this;
    }
protected function wrapField(&$fieldStub, Field $field, $standardLabel = true, $required = '')
    {
        $stub = $this->getStubContent('form-input-wrapper.blade', $this->template);

        $this->replaceFieldName($stub, $field->name)
            ->replaceCssClass($stub, $field->cssClass)
            ->replaceFieldLabel($stub, $this->getLabelFromField($standardLabel ? $field : null))
            ->replaceFieldValidationHelper($stub, $this->getNewHelper($field))
            ->replaceFieldInput($stub, $fieldStub)
            ->replaceRequiredClass($stub, $required);

        $fieldStub = $stub;

        return $this;
    }
protected function wrapField ( & $ fieldStub , Field $ field , $ standardLabel = true , $ required = '' ) { $ stub = $ this -> getStubContent ( 'form-input-wrapper.blade' , $ this -> template ) ; $ this -> replaceFieldName ( $ stub , $ field -> name ) -> replaceCssClass ( $ stub , $ field -> cssClass ) -> replaceFieldLabel ( $ stub , $ this -> getLabelFromField ( $ standardLabel ? $ field : null ) ) -> replaceFieldValidationHelper ( $ stub , $ this -> getNewHelper ( $ field ) ) -> replaceFieldInput ( $ stub , $ fieldStub ) -> replaceRequiredClass ( $ stub , $ required ) ; $ fieldStub = $ stub ; return $ this ; }
Wraps a field with a wrapper template

@param string $fieldStub
@param CrestApps\CodeGeneraotor\Support\Field $field
@param bool $standardLabel

@return $this
Wraps a field with a wrapper template