Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel Nova remove resources from navigation

Tags:

laravel-nova

Perhaps someone has already encountered a similar problem and can tell me.

How to delete “resources” item in navigation. Not a separate resource - but in general, completely remove the entire list, including the title.

Screenshot: https://prnt.sc/lw1nup

Need to: https://prnt.sc/lw1xf9

What I was trying to do:

  • I tried to comment out the entire contents of the views / resources / navigation.blade.php file

  • I tried to comment out the new line calling "new ResourceManager" inside registerTools in src / NovaServiceProvider.php.

So far, all without results.

like image 863
Andrey Markov Avatar asked Oct 20 '25 02:10

Andrey Markov


1 Answers

Another way to hide a resource from resource list is by adding the below code in your resource file:

public static $displayInNavigation = false;

That I wish we had it in the document as well.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!