public function path($path, $args = [])
    {
        if (is_array($path)) {
            $path = array_merge($path, $args);
        } elseif ($args !== []) {
            $path = array_merge([$path], $args);
        }

        return Url::to($path);
    }
public function path($path, $args = [])
    {
        if (is_array($path)) {
            $path = array_merge($path, $args);
        } elseif ($args !== []) {
            $path = array_merge([$path], $args);
        }

        return Url::to($path);
    }
public function path ( $ path , $ args = [ ] ) { if ( is_array ( $ path ) ) { $ path = array_merge ( $ path , $ args ) ; } elseif ( $ args !== [ ] ) { $ path = array_merge ( [ $ path ] , $ args ) ; } return Url :: to ( $ path ) ; }
Generates relative URL

@param string $path the parameter to be used to generate a valid URL
@param array $args arguments
@return string the generated relative URL
Generates relative URL