App\services\UploadsManager::fileWebpath PHP 메소드

fileWebpath() 공개 메소드

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