LaravelBook\Laravel4Powerpack\HTML::asset PHP Method

asset() public method

Generate a HTML link to an asset
public asset ( string $url, string $title = null, array $attributes = [], boolean $https = null ) : string
$url string
$title string
$attributes array
$https boolean
return string
    public function asset($url, $title = null, $attributes = array(), $https = null)
    {
        $url = $this->url->asset($url, $https);
        if (is_null($title)) {
            $title = $url;
        }
        return '<a href="' . $url . '"' . $this->attributes($attributes) . '>' . $this->entities($title) . '</a>';
    }