Dingo\Api\Routing\UrlGenerator::version PHP Method

version() public method

Set the routes to use from the version.
public version ( string $version ) : UrlGenerator
$version string
return UrlGenerator
    public function version($version)
    {
        $this->routes = $this->collections[$version];
        return $this;
    }