Skip to content
Discussion options

You must be logged in to vote

It's not a bug. If you don't use the menu method on the resource itself to display the menu item, and instead use a static constructor from the MenuItem class then you're opting to build your own instance.

If you want to use the menu item from the resource itself with its badge logic, you can just call it inside your NovaServiceProvider:

Nova::mainMenu(function (Request $request) {
    return [
        Resource::make()->menu($request),
    ];
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davidhemphill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4602 on July 19, 2022 15:59.