src/HtmlBuilder.php
public function image($url, $alt = null, $attributes = [], $secure = null)
    {
        return Elements\Img::make()
            ->src($this->url->asset($url, $secure))
            ->attributeUnless(is_null($alt), 'alt', $alt)
            ->attributes($attributes)
            ->render();
    }
public function image($url, $alt = null, $attributes = [], $secure = null)
    {
        return Elements\Img::make()
            ->src($this->url->asset($url, $secure))
            ->attributeUnless(is_null($alt), 'alt', $alt)
            ->attributes($attributes)
            ->render();
    }
Generate an HTML image element.

@param  string       $url
@param  string|null  $alt
@param  array        $attributes
@param  bool         $secure

@return \Illuminate\Support\HtmlString