Plank\Mediable\UrlGenerators\LocalUrlGenerator::getUrl PHP Метод

getUrl() публичный Метод

public getUrl ( )
    public function getUrl()
    {
        $path = $this->getPublicPath();
        $url = $this->getDiskConfig('url');
        if ($url) {
            if ($this->isInWebroot()) {
                $path = $this->media->getDiskPath();
            }
            return rtrim($url, '/') . '/' . trim($path, '/');
        }
        return $this->url->asset($path);
    }