App\services\UploadsManager::fileWebpath PHP Method

fileWebpath() public method

Return the full web path to a file
public fileWebpath ( $path ) : string
$path
return string
    public function fileWebpath($path)
    {
        $path = rtrim(config('custom.uploads.webpath'), '/') . '/' . ltrim($path, '/');
        return url($path);
    }