-
Previously in Nova 3 this was as simple as publishing the views and editing How can I do that in Nova 4? I need to add a link to the 2FA Configuration for a client. Many thanks |
Beta Was this translation helpful? Give feedback.
Answered by
juse-less
Oct 21, 2022
Replies: 1 comment
-
I'd recommend reading this section in the documentation, which has some useful information on what works and what doesn't. A small example, based on what I do myself: // NovaServiceProvider
public function boot(): void
{
Nova::userMenu(function (\Illuminate\Http\Request $request, \Laravel\Nova\Menu\Menu $menu): \Laravel\Nova\Menu\Menu {
// You can create and return a fresh Menu, if you want to ensure existing items are deleted.
// Menu::make()
// The Logout link will always be present at the bottom, from what I can tell, though.
return $menu->append([
MenuItem::link(\__('2FA Configuration'), \route('my.2fa.route')),
// ...
]);
});
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
crynobone
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd recommend reading this section in the documentation, which has some useful information on what works and what doesn't.
A small example, based on what I do myself: