src/Platform/ItemMenu.php
public function route(string $name, array $parameters = [], bool $absolute = true): self
    {
        $this->route = route($name, $parameters, $absolute);

        $this->active([$this->route, $this->route.'/*']);

        return $this;
    }
public function route(string $name, array $parameters = [], bool $absolute = true): self
    {
        $this->route = route($name, $parameters, $absolute);

        $this->active([$this->route, $this->route.'/*']);

        return $this;
    }
public function route ( string $ name , array $ parameters = [ ] , bool $ absolute = true ) : self { $ this -> route = route ( $ name , $ parameters , $ absolute ) ; $ this -> active ( [ $ this -> route , $ this -> route . '/*' ] ) ; return $ this ; }
Generate the URL to a named route.

@param string $name
@param array  $parameters
@param bool   $absolute

@return ItemMenu
Generate the URL to a named route .