public function fileWebpath($path)
    {
        $path = $this->disk->url($path);
        // Remove extra slashes from URL without removing first two slashes after http/https:...
        $path = preg_replace('/([^:])(\/{2,})/', '$1/', $path);

        return $path;
    }
public function fileWebpath($path)
    {
        $path = $this->disk->url($path);
        // Remove extra slashes from URL without removing first two slashes after http/https:...
        $path = preg_replace('/([^:])(\/{2,})/', '$1/', $path);

        return $path;
    }
public function fileWebpath ( $ path ) { $ path = $ this -> disk -> url ( $ path ) ; // Remove extra slashes from URL without removing first two slashes after http/https:... $ path = preg_replace ( '/([^:])(\/{2,})/' , '$1/' , $ path ) ; return $ path ; }
Return the full web path to a file.

@param $path

@return string
Return the full web path to a file .