public function crumbMenu()
    {
        $nb = $this->spawn('crumbMenu', new Collection());

        $item = $this->active();
        $items = [$item];
        while ($item->hasParent()) {
            $item = $item->parent();
            array_unshift($items, $item);
        }

        foreach ($items as $item) {
            $nb->add($item->title, $item->url());
        }

        return $nb;
    }
public function crumbMenu()
    {
        $nb = $this->spawn('crumbMenu', new Collection());

        $item = $this->active();
        $items = [$item];
        while ($item->hasParent()) {
            $item = $item->parent();
            array_unshift($items, $item);
        }

        foreach ($items as $item) {
            $nb->add($item->title, $item->url());
        }

        return $nb;
    }
public function crumbMenu ( ) { $ nb = $ this -> spawn ( 'crumbMenu' , new Collection ( ) ) ; $ item = $ this -> active ( ) ; $ items = [ $ item ] ; while ( $ item -> hasParent ( ) ) { $ item = $ item -> parent ( ) ; array_unshift ( $ items , $ item ) ; } foreach ( $ items as $ item ) { $ nb -> add ( $ item -> title , $ item -> url ( ) ) ; } return $ nb ; }
Returns a new builder with all of the parents of the active item.

@return Builder
Returns a new builder with all of the parents of the active item .