src/HtmlBuilder.php
public function link($url, $title = null, array $attributes = [], $secure = null, $escaped = true)
    {
        $url = $this->url->to($url, [], $secure);

        if (is_null($title) || $title === false)
            $title = $url;

        return Elements\A::make()
            ->href($this->entities($url))
            ->attributes($attributes)
            ->html($escaped ? $this->entities($title) : $title)
            ->render();
    }
public function link($url, $title = null, array $attributes = [], $secure = null, $escaped = true)
    {
        $url = $this->url->to($url, [], $secure);

        if (is_null($title) || $title === false)
            $title = $url;

        return Elements\A::make()
            ->href($this->entities($url))
            ->attributes($attributes)
            ->html($escaped ? $this->entities($title) : $title)
            ->render();
    }
Generate a HTML link.

@param  string       $url
@param  string|null  $title
@param  array        $attributes
@param  bool         $secure
@param  bool         $escaped

@return \Illuminate\Support\HtmlString