adding user-menu.start element

In v2 I had:
Filament::registerRenderHook(
'user-menu.start',
static fn (): View => view('main-toolbar-help'),
);
Filament::registerRenderHook(
'user-menu.start',
static fn (): View => view('main-toolbar-help'),
);
which I transferred to v3 as:
$panel->renderHook('user-menu.start', static fn (): View => view('main-toolbar-help'))
$panel->renderHook('user-menu.start', static fn (): View => view('main-toolbar-help'))
just like the notifications: ->renderHook('user-menu.start', static fn (): View => view('main-toolbar-notifications')) Unfortunately the template is not rendered and the element does not appear as user menu element. Do you have any idea what was changed in v3 so this stopped working?
2 Replies
StanProg
StanProgOP15mo ago
Thank you. I think that registerHook for the notifications is not even necessary as it's added automatically.
Want results from more Discord servers?
Add your server