src/Gzero/Cms/Menu/Register.php
public function addChild($parentUrl, Link $link)
    {
        $this->links->each(
            function ($value) use ($parentUrl, $link) {
                if ($value->url === $parentUrl) {
                    $value->children->push($link);
                    return false;
                }
            }
        );
    }
public function addChild($parentUrl, Link $link)
    {
        $this->links->each(
            function ($value) use ($parentUrl, $link) {
                if ($value->url === $parentUrl) {
                    $value->children->push($link);
                    return false;
                }
            }
        );
    }
public function addChild ( $ parentUrl , Link $ link ) { $ this -> links -> each ( function ( $ value ) use ( $ parentUrl , $ link ) { if ( $ value -> url === $ parentUrl ) { $ value -> children -> push ( $ link ) ; return false ; } } ) ; }
It adds child link to parent specified by url parameter

@param string $parentUrl Parent url
@param Link   $link      Menu link

@return void
It adds child link to parent specified by url parameter