Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

philipbaginski's avatar

Hide sidebar menu

Hi! I faced problem I can not find any solution in Nova docs: How to hide menu from sidebar not connected to the recources? I can easily hide resources by code in the resource file or by creating policy. But I'm lost to hide menu from packages - e.g. Backup or Roles & Permisions - which came with packages. The best if hiding method is based on policy, so I can attach some of users able to see menu. Any help?

0 likes
3 replies
philipbaginski's avatar

The package is not displayed in the side menu if is not added into NovaServiceProvider.php file. I found this kind of code:

(new Foo)->canSee(function () { // stuff })

, will try to make it working.

alaa_elshekh's avatar

Hi have you tried this in resource public static $displayInNavigation = false;

Please or to participate in this conversation.