LaravelBook\Laravel4Powerpack\HTML::image PHP Method

image() public method

Generate an HTML image element.
public image ( string $url, string $alt = null, array $attributes = [] ) : string
$url string
$alt string
$attributes array
return string
    public function image($url, $alt = null, $attributes = array())
    {
        if (is_null($alt)) {
            $alt = $url;
        }
        $attributes['alt'] = $alt;
        return '<img src="' . $this->url->to($url) . '"' . $this->attributes($attributes) . '>';
    }