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

OccultScientist's avatar

Can't move topbar nav to sidebar for some reason

Hi all,

Not sure what I'm doing wrong here! I'm using Filament (v3.2.111), and the navigation always appears in the top bar. I've tried several things in the AdminPanelProvider.php file, but nothing seems to work to get the menu to appear in a left sidebar on the desktop version, as it does perfectly on mobile.

I've tried:

->topbar(false); - just hides the top bar and nav ->sidebarCollapsibleOnDesktop() - Does nothing ->sidebarCollapsibleOnDesktop(true) - same as above

I'm probably missing something very obvious, and I would really appreciate a nudge in the right direction.

Thanks in advance!

0 likes
3 replies
LaryAI's avatar
Level 58

To move the navigation from the top bar to the sidebar in Filament, you need to configure the layout settings properly in your AdminPanelProvider.php file. Filament provides a way to customize the layout through the layout method.

Here's a step-by-step solution to achieve this:

  1. Open your AdminPanelProvider.php file.
  2. Locate the layout method or add it if it doesn't exist.
  3. Configure the layout to use the sidebar for navigation.

Here's an example of how you can configure it:

<?php

namespace App\Providers;

use Filament\Filament;
use Filament\Navigation\NavigationGroup;
use Illuminate\Support\ServiceProvider;

class AdminPanelProvider extends ServiceProvider
{
    public function boot()
    {
        Filament::serving(function () {
            Filament::layout(function ($layout) {
                $layout->sidebar(true); // Enable the sidebar
                $layout->topbar(false); // Disable the topbar
            });
        });
    }
}

In this example, the layout method is used to enable the sidebar and disable the topbar. This should move your navigation to the sidebar on the desktop version.

If you have any custom navigation groups or items, make sure they are properly defined and will appear in the sidebar. You can define them in the same AdminPanelProvider.php file or in a separate configuration file.

If you still face issues, ensure that your Filament version is up-to-date and that there are no conflicting configurations elsewhere in your project.

I hope this helps! If you have any further questions, feel free to ask.

OccultScientist's avatar

I now receive the following error:

Call to undefined method Filament\FilamentManager::layout()

It seems that Filament\Filament doesn't exist, and instead it is using Filament\Facades\Filament;

OccultScientist's avatar
OccultScientist
OP
Best Answer
Level 1

OK, if anyone else has the same issue, my problem was with the coolsam-modules plugin for Filament to enable me to use nwidart/laravel-modules with Filament.

I needed to publish the config file with:

php artisan vendor:publish --tag="modules-config"

and then I found an option that I had to set to false: 'use-top-navigation' => false,

Please or to participate in this conversation.