Skip to content
Discussion options

You must be logged in to vote

In NovaServiceProvider boot method:

  Nova::userMenu(function (Request $request, Menu $menu) {
            $menu->prepend(
                MenuItem::make(
                    'My Profile',
                    "/resources/users/{$request->user()?->getKey()}"
                ),
            );

            return $menu;
        });

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shubhamserverfront
Comment options

@webard
Comment options

@shubhamserverfront
Comment options

Answer selected by crynobone
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 #6289 on March 20, 2024 06:25.