© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
10 replies
Flo

Disable sub-navigation on specify page

Hello, is it possible to disable the sub-navigation resource on certain pages only?

I have a resource that has a public function getRecordSubNavigation, but I want to hide it on a specific page of type ViewRecord.

This page is not included in the menu, but I want to disable this menu for this page.

Is it possible ?
Solution
Ok, I have the solution.

In the ViewRecord page, add this:

public function getSubNavigation(): array
{
    return [];
}
public function getSubNavigation(): array
{
    return [];
}
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

sub navigation in custom page
FilamentFFilament / ❓┊help
3y ago
Badge on sub-navigation
FilamentFFilament / ❓┊help
3y ago
Translations sub-navigation pages
FilamentFFilament / ❓┊help
3y ago
Dynamic Badge Count on Sub Navigation Relation Page
FilamentFFilament / ❓┊help
2y ago