Bkwld\Croppa\URL::toPath PHP Method

toPath() public method

Extract the path from a URL and remove it's leading slash
public toPath ( string $url ) : string
$url string
return string path
    public function toPath($url)
    {
        return ltrim(parse_url($url, PHP_URL_PATH), '/');
    }