app\Application::staticUrl PHP Method

staticUrl() public method

If this installation of Koel has a CDN_URL configured, use it as the base. Otherwise, just use a full URL to the asset.
public staticUrl ( string $name = null ) : string
$name string The additional resource name/path.
return string
    public function staticUrl($name = null)
    {
        $cdnUrl = trim(config('koel.cdn.url'), '/ ');
        return $cdnUrl ? $cdnUrl . '/' . trim(ltrim($name, '/')) : trim(asset($name));
    }