src/UrlGenerator.php
public function root(): string
    {
        $scheme = $this->getScheme(null);
        $domain = \trim($this->domain(true), '/');
        $prefix = $this->prefix(true);

        return \trim("{$scheme}{$domain}/{$prefix}", '/');
    }
public function root(): string
    {
        $scheme = $this->getScheme(null);
        $domain = \trim($this->domain(true), '/');
        $prefix = $this->prefix(true);

        return \trim("{$scheme}{$domain}/{$prefix}", '/');
    }
Get route root.

@return string