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

Reached's avatar
Level 11

Hiding the dashboard link in the sidebar

Hi guys,

I found a way to redirect straight to a resource when visiting my Nova dashboard, however ideally I would want to completely hide the Dashboard link in the sidebar, has anyone found a way to do this?

Thanks!

0 likes
5 replies
philipbaginski's avatar

Add to your resource:

/** * Indicates if the resource should be displayed in the sidebar. * * @var bool */ public static $displayInNavigation = false; // Change to true if you would like to show this resource in the sidebar.

eugenefvdm's avatar

I have the same question.

$displayInNavigation = false; doesn't seem to work for me because I can't find a "Dashboard" resource.

Instead the best I was able to do is hide the default help card.

  1. Publish the assets.
  2. In NovaServiceProvider.php, do this:
protected function cards()
    {
        return [
            // new Help, // commented out to avoid displaying default text
        ];
    }
1 like
AlexElementarteilchen's avatar

I don't think that this is possible. If it were, you'd need to be able tell Nova where to go after a user logs in.

Redirecting to a resource seems to be the best approach.

gbrits's avatar

Aside from CSS, you can overwrite the actual menu in the NovaServiceProvider:

Nova::mainMenu(function (Request $request) {
            return [               
                MenuSection::make('Projects', [
                    MenuItem::link('View All', 'resources/projects'),
                    MenuItem::link('Add Project', 'resources/projects/new'),
                    MenuItem::resource(Task::class),
                ])->icon('clipboard'),
            ];
});

(inside of the boot() method)

Please or to participate in this conversation.