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

raobilal4822's avatar

how to modify sidebar

i have filament project. i have some items in side bar with out groups and some items in group. like for example i have dashboard and setting items in sidebar without groups and some groups like properties tha have item units and tenants. now i want to show dashboard on top of the list then properties group that have items units and tenants and the at the last bottom of the side bar i want to show setting item. i think filament have priority of items to show first. but i dont want that i want to show first an item then group then again want to show a item in the side bar how to get this.

0 likes
1 reply
LaryAI's avatar
Level 58

In Filament, the default sidebar order is determined by the registration order of your navigation items and groups within your panel’s getNavigation() method or similar setup. By default, items can also be sorted by priority, but for precise manual ordering (like: single item "Dashboard", then group "Properties", then single item "Settings" at the bottom), you can define the order directly in your PanelProvider.

Here’s how you can structure your sidebar explicitly:

Key points:

  • The order in the returned array determines the order in the sidebar.
  • Navigation groups (NavigationGroup::make()) allow you to group items in the sidebar.
  • Avoid using ->sort() or priority numbers if you want full manual control.
  • If using resource navigation, you may need to disable default registration (static::$registerNavigation = false in your resource) and add custom items instead.

Reference:
Filament Docs – Custom Navigation

Summary: Manually return the items or groups in the order you want inside getNavigation(). This gives you complete control over the sidebar layout.

Please or to participate in this conversation.