public function optional(string $parameter, string $defaultValue) : RouteBuilder
    {
        foreach ($this->routes as $route) {
            $route->tokens([
                $parameter => '([^/]+)?',
            ]);
            $route->defaults([
                $parameter => $defaultValue,
            ]);
        }
        return $this;
    }