Utility/Fields/Image.php
public function render()
    {
        $attrs = array();
        $id = $this->getHtmlId();
        $name = $this->getHtmlName();
        $label = $this->getLabel();
        $cssClass = 'file';
        $attrs['id'] = $id;

        if ($this->getOption('required') == 'true') {
            $cssClass .= ' required';
        }
        $value = $this->value;
        $attrs['class'] = $cssClass;
        $html = '';
        if (!empty($label)) {
            $html .= FormFacade::label($label);
        }
        $html            .= view('dynamicfield::admin.dynamicfield.media-link', compact('name', 'id', 'value'))->render();

        $html = sprintf($this->htmlItemTemplate, $html);

        return $html;
    }
public function render()
    {
        $attrs = array();
        $id = $this->getHtmlId();
        $name = $this->getHtmlName();
        $label = $this->getLabel();
        $cssClass = 'file';
        $attrs['id'] = $id;

        if ($this->getOption('required') == 'true') {
            $cssClass .= ' required';
        }
        $value = $this->value;
        $attrs['class'] = $cssClass;
        $html = '';
        if (!empty($label)) {
            $html .= FormFacade::label($label);
        }
        $html            .= view('dynamicfield::admin.dynamicfield.media-link', compact('name', 'id', 'value'))->render();

        $html = sprintf($this->htmlItemTemplate, $html);

        return $html;
    }
Render html of field.

@return string