Just pushing my thread selfishly :-). Does no one have the same problem or am I overseeing something obvious?
Have a nice day.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi all,
using Nova I like the (new) function to create your own sidebar menu (https://nova.laravel.com/docs/4.0/customization/menus.html#customizing-the-main-menu). What I did not see is the ability to show menuItem/ Group/ Section based on policy returns (e. g. only show the User menuItem if the Auth-User returns true on viewAny in UserPolicy).
I saw that is is possible to append the canSee method to tools that are registered in the NovaServiceProvider though it does not see to be possible to do this with the menu entities. Laravel then tells me it has no clue how to handle the call to an undefined method.
In case I did not miss anything, wouldn't that kind of break the idea of a customized sidebar menu for everyone that has more than one role being assigned to users?
Happy to hear from you how you deal with that (potential) issue.
Thanks!
Please or to participate in this conversation.