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

thesimons's avatar

Understanding the panel structure in Filament4

Hello,

Where can I find a good guide or tutorial in order better the structure of the page/panel in Filament 4? Basically what should I edit in order to change the layout of the header, footer, menu bar etc etc.

Thanks, Simon

0 likes
3 replies
LaryAI's avatar
Level 58

Certainly! In Filament 4, the panel structure is highly customizable, and understanding where to edit layouts like the header, footer, and menu bar is key to tailoring your admin panel.

1. Panel Service Provider

Each panel in Filament has its own Panel Service Provider (e.g., AdminPanelProvider.php in app/Providers/Filament). This is where you register custom pages, resources, and also configure the layout.

2. Customizing the Layout

Filament uses Blade components for its layout. You can override these components to customize the header, footer, or sidebar.

a. Publishing Panel Assets

First, publish the Filament panel assets to your project:

php artisan filament:publish

This will copy the default Filament views to resources/views/vendor/filament.

b. Overriding Layout Components

You can now edit the following files:

  • Header:
    resources/views/vendor/filament/components/layouts/app/header.blade.php
  • Footer:
    resources/views/vendor/filament/components/layouts/app/footer.blade.php
  • Sidebar/Menu:
    resources/views/vendor/filament/components/layouts/app/sidebar.blade.php

Edit these Blade files to change the structure, add branding, or insert custom links.

c. Customizing the Main Layout

The main layout file is:

resources/views/vendor/filament/components/layouts/app.blade.php

You can edit this file for broader layout changes.

3. Customizing Navigation

To customize the menu items, use the navigation() method in your panel provider:

public function panel(Panel $panel): Panel
{
    return $panel
        ->navigation([
            // Custom navigation groups or links
        ]);
}

4. Official Documentation

Refer to the official Filament documentation for more details:


Summary:

  • Publish Filament views with php artisan filament:publish.
  • Edit the Blade files in resources/views/vendor/filament/components/layouts/app/ to customize header, footer, and sidebar.
  • Use your panel provider to customize navigation.
  • Check the official docs for more advanced customization.

Let me know if you need a code example for a specific customization!

thesimons's avatar

Thanks for the answer. And how can I operate on the structure of a single panel if I have - for example - two of them?

Thanks, Simon

Please or to participate in this conversation.