diff --git a/src/Helpers/MenuHelper.php b/src/Helpers/MenuHelper.php index 1d6c743..8ba9c71 100644 --- a/src/Helpers/MenuHelper.php +++ b/src/Helpers/MenuHelper.php @@ -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', [