From 1b6b183bff2a157fcbe1f575b11afcd5a441860f Mon Sep 17 00:00:00 2001 From: Gilles Felix Date: Fri, 26 Jan 2024 16:18:06 +0100 Subject: [PATCH] Fix use of buildTree --- src/Helpers/MenuHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', [