TIL: How to collapse sidebar menu in Filament

12.7.2025

filament TIL
Filament collapse sidebar menu

⭐ Filament quick tip:

If you want to collapse the sidebar in filament you can use either of these two methods on your AdminPanelProvider.php

  1. Either you can use ->sidebarCollapsibleOnDesktop() which it it’s gonna show the navigation icons.

  2. Or you can use ->sidebarFullyCollapsibleOnDesktop() which it’s only gonna show the hamburger menu icon.