diff --git a/Providers/MenuServiceProvider.php b/Providers/MenuServiceProvider.php index e951365..cd05c32 100644 --- a/Providers/MenuServiceProvider.php +++ b/Providers/MenuServiceProvider.php @@ -89,7 +89,7 @@ function () { public function addItemToMenu(Menuitem $item, Builder $menu) { if ($this->hasChildren($item)) { - $this->addChildrenToMenu($item->title, $item->items, $menu, ['icon' => $item->icon]); + $this->addChildrenToMenu($item->title, $item->items, $menu, ['icon' => $item->icon, 'target' => $item->target]); } else { $target = $item->uri ?: $item->url; $menu->url( @@ -128,7 +128,7 @@ private function addSubItemToMenu(Menuitem $child, PingpongMenuItem $sub) $this->addChildrenToMenu($child->title, $child->items, $sub); } else { $target = $child->uri ?: $child->url; - $sub->url($target, $child->title, 0, ['icon' => $child->icon]); + $sub->url($target, $child->title, 0, ['icon' => $child->icon, 'target' => $child->target]); } }