Skip to content

Commit

Permalink
Fix use of buildTree
Browse files Browse the repository at this point in the history
  • Loading branch information
felixgilles committed Jan 26, 2024
1 parent fa48aed commit 1b6b183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/MenuHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static function displayMenu(Menu|string $slug_or_menu, string $view = nul
->get()
->toTree();

return static::getTree($items);
return app()->get('laravel-nova-menu')->buildTree($items);
});

return (string) view($view ?? 'laravel-nova-menu::front/menu', [
Expand Down

0 comments on commit 1b6b183

Please sign in to comment.