src/Host.php
public function link($params = [], $options = [])
    {
        $defaults = [
            'scheme'   => $this->scheme()
        ];
        $options += $defaults;

        if (!isset($options['host'])) {
            $options['host'] = $this->_link($this->token(), $params);
        }

        $scheme = $options['scheme'] !== '*' ? $options['scheme'] . '://' : '//';
        return $scheme . $options['host'];
    }
public function link($params = [], $options = [])
    {
        $defaults = [
            'scheme'   => $this->scheme()
        ];
        $options += $defaults;

        if (!isset($options['host'])) {
            $options['host'] = $this->_link($this->token(), $params);
        }

        $scheme = $options['scheme'] !== '*' ? $options['scheme'] . '://' : '//';
        return $scheme . $options['host'];
    }
Returns the host's link.

@param  array  $params  The host parameters.
@param  array  $options Options for generating the proper prefix. Accepted values are:
- `'scheme'`   _string_ : The scheme.
- `'host'`     _string_ : The host name.
@return string          The link.