diff --git a/src/Helpers/MenuHelper.php b/src/Helpers/MenuHelper.php index 14ecd16..a29808d 100644 --- a/src/Helpers/MenuHelper.php +++ b/src/Helpers/MenuHelper.php @@ -117,7 +117,7 @@ public static function displayMenu(string $slug): string return static::getTree($items); }); - return view('laravel-nova-menu::front/menu', [ + return (string) view('laravel-nova-menu::front/menu', [ 'menu' => $menu, 'tree' => $tree, ]);