© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
5 replies
Joshua

Side Nav vs Top Nav per user?

I know this seems like an odd request but is there any way or plugin to basically toggle if its side nav or tap nav on a per user basis like a dark/light theme preference?
Solution
You can store the preference in a session and use a middleware to handle this..

public function handle(Request $request, Closure $next): Response
{
    $currentPanel = filament()->getCurrentPanel();

    if (...) {
        $currentPanel->topNavigation();
    }

    return $next($request);
}
public function handle(Request $request, Closure $next): Response
{
    $currentPanel = filament()->getCurrentPanel();

    if (...) {
        $currentPanel->topNavigation();
    }

    return $next($request);
}


Add the middleware in your panel
$panel->middleware([CustomMiddleware:class])
$panel->middleware([CustomMiddleware:class])
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

side nav bar style
FilamentFFilament / ❓┊help
3y ago
nav menu user photo
FilamentFFilament / ❓┊help
3y ago
how to style side bar nav
FilamentFFilament / ❓┊help
3y ago
How to put user icon with user menu in the side nav bar ? At bottom left
FilamentFFilament / ❓┊help
3y ago