© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
bernhard

Getting custom resource page into navigation sidebar

How to add a custom created resource page (under
Filament/ResourceName/Pages/
Filament/ResourceName/Pages/
, not the one under
Filament/Pages/
Filament/Pages/
) to the sidebar navi?

class AdStatisticList extends ListRecords {
    protected static ?string $navigationLabel = "XXX";
    protected static bool $shouldRegisterNavigation = true;
class AdStatisticList extends ListRecords {
    protected static ?string $navigationLabel = "XXX";
    protected static bool $shouldRegisterNavigation = true;


has no effect.

I thought about adding it via ServiceProvider:

 public function panel(Panel $panel): Panel
 {
        return $panel
          ...
          ->navigationItems([
              NavigationItem::make('Werbestatistik')->url(???)
          ])
          ...
}
 public function panel(Panel $panel): Panel
 {
        return $panel
          ...
          ->navigationItems([
              NavigationItem::make('Werbestatistik')->url(???)
          ])
          ...
}


but how to get the url of it (see
???
???
in the code? Tried

NavigationItem::make('Werbestatistik')->url(AdStatisticList::getUrl())
NavigationItem::make('Werbestatistik')->url(AdStatisticList::getUrl())


but this resulted in
Call to a member function getId() on null
Call to a member function getId() on null
error.
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

Hiding Navigation Sidebar in a custom page
FilamentFFilament / ❓┊help
3y ago
Getting Tenant details into custom navigation
FilamentFFilament / ❓┊help
3y ago
Resource as Navigation Parent of Custom page
FilamentFFilament / ❓┊help
16mo ago
Navigation for custom page
FilamentFFilament / ❓┊help
2y ago