protected function getLabelFromField(Field $field = null)
    {
        if (empty($field)) {
            return $this->getStubContent('form-nolabel-field.blade', $this->template);
        }

        return $this->getLabelElement($field->name, $field->getLabel());
    }
protected function getLabelFromField(Field $field = null)
    {
        if (empty($field)) {
            return $this->getStubContent('form-nolabel-field.blade', $this->template);
        }

        return $this->getLabelElement($field->name, $field->getLabel());
    }
protected function getLabelFromField ( Field $ field = null ) { if ( empty ( $ field ) ) { return $ this -> getStubContent ( 'form-nolabel-field.blade' , $ this -> template ) ; } return $ this -> getLabelElement ( $ field -> name , $ field -> getLabel ( ) ) ; }
Creates html label from a given field

@param CrestApps\CodeGenerator\Models\Field $field

@return string
Creates html label from a given field