public static function replace($uri, $parameters = [])
    {
        $parameters = (array) $parameters;

        $uri = static::replaceRouteParameters($uri, $parameters);
        $uri = str_replace('//', '/', $uri);

        return $uri;
    }
public static function replace($uri, $parameters = [])
    {
        $parameters = (array) $parameters;

        $uri = static::replaceRouteParameters($uri, $parameters);
        $uri = str_replace('//', '/', $uri);

        return $uri;
    }
public static function replace ( $ uri , $ parameters = [ ] ) { $ parameters = ( array ) $ parameters ; $ uri = static :: replaceRouteParameters ( $ uri , $ parameters ) ; $ uri = str_replace ( '//' , '/' , $ uri ) ; return $ uri ; }
Replace route parameters.

@param $uri
@param array $parameters

@return mixed|string
Replace route parameters .