src/HtmlBuilder.php
public function image(string $url, ?string $alt = null, array $attributes = [], ?bool $secure = null): Htmlable
    {
        $attributes['alt'] = $alt;

        return $this->toHtmlString(
            '<img src="'.$this->url->asset($url, $secure).'"'.$this->attributes($attributes).'>'
        );
    }
public function image(string $url, ?string $alt = null, array $attributes = [], ?bool $secure = null): Htmlable
    {
        $attributes['alt'] = $alt;

        return $this->toHtmlString(
            '<img src="'.$this->url->asset($url, $secure).'"'.$this->attributes($attributes).'>'
        );
    }
Generate an HTML image element.

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

@return \Illuminate\Contracts\Support\Htmlable