Disabling the navigation menu entirely
Hi! I was wondering if it’s possible to completely disable the while navigation menu on a custom page…? (Only on that page) So for example when using the sidebar navigation, the page would take up the full width of the screen, because I tried to conditionally hide all items, but the sidebar still takes up space and the content is shifted to the right. I already tried searching for this in the docs and here in the discord message history but couldn’t find anything. Thanks for the help in advance!
Solution:Jump to solution
Alright so I figured out that you can set the
protected static string $layout
variable on any page, and by creating a custom layout similar to https://github.com/filamentphp/filament/blob/3.x/packages/panels/resources/views/components/layout/simple.blade.php you can just not show the navigation. Just putting it out here if anyone ever stumbles upon this.GitHub
filament/packages/panels/resources/views/components/layout/simple.b...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
1 Reply
Solution
Alright so I figured out that you can set the
protected static string $layout
variable on any page, and by creating a custom layout similar to https://github.com/filamentphp/filament/blob/3.x/packages/panels/resources/views/components/layout/simple.blade.php you can just not show the navigation. Just putting it out here if anyone ever stumbles upon this.GitHub
filament/packages/panels/resources/views/components/layout/simple.b...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament