Skip to content

Commit

Permalink
Update Menu.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Oct 17, 2022
1 parent 2461859 commit b91e99c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Models/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ public function getMenu($name): ?self
$menu = $this->published()
->with([
'menulinks' => function ($query) {
$query->published();
$query->with([
'page',
'section',
'image',
'parent',
])->published();
},
'menulinks.page',
])
->where('name', $name)
->first();
Expand Down

0 comments on commit b91e99c

Please sign in to comment.