public function url($path, $slashes = false)
    {
        $path = ($slashes !== false) ? explode('/', $path) : array($path);
        foreach ($path as $key => $value) {
            $path[$key] = URLify::filter($value);
        }

        return implode('/', $path);
    }
public function url($path, $slashes = false)
    {
        $path = ($slashes !== false) ? explode('/', $path) : array($path);
        foreach ($path as $key => $value) {
            $path[$key] = URLify::filter($value);
        }

        return implode('/', $path);
    }
public function url ( $ path , $ slashes = false ) { $ path = ( $ slashes !== false ) ? explode ( '/' , $ path ) : array ( $ path ) ; foreach ( $ path as $ key => $ value ) { $ path [ $ key ] = URLify :: filter ( $ value ) ; } return implode ( '/' , $ path ) ; }
Slugifies a folder path suitable for urls.

@param string $path    The path you would like to slugify
@param mixed  $slashes If anything but false, it will allow your path to have slashes.

@return string
Slugifies a folder path suitable for urls .