Skip to content

Commit 81406e5

Browse files
authored
Fix menu order 9_adding-navigation.md
1 parent 4fa57e7 commit 81406e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/content/2_guides/1_page-builder-with-blade/9_adding-navigation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ class Menu extends Component
342342
public function render(): View
343343
{
344344
/** @var MenuLink[] $links */
345-
$links = MenuLink::published()->get()->toTree();
345+
$links = MenuLink::published()->orderBy('position')->get()->toTree();
346346
347347
return view('components.menu', ['links' => $links]);
348348
}

0 commit comments

Comments
 (0)