Courses

Filament 3 From Scratch: Practical Course

Multiple Panels: Admin and Accountant

You're reading a FREE PREVIEW of a PREMIUM course.
Summary of this lesson:
- Creating multiple admin panels
- Managing panel configurations
- Implementing panel-specific resources
- Handling panel authorization

Filament 3 also comes with the ability to create more than one Panel with it:

These panels are running on the same Filament project, using the same database. But they are completely independent of each other. This means that we can control the content of each Panel separately, and we can also control the layout of each Panel separately.


Why Panels?

Before we go into the details of how to create a multi-panel Filament project, let's first understand what a panel is and why we need it.

You can treat panels as independent projects inside your application. This means you can create and deploy a single Laravel and Filament application but have multiple "projects" inside it. Each project can have its own access level, configuration, design, and logic. This is very useful if you don't want to mess around with disabling and enabling specific actions. Your actions between panels might differ so much that it would be a pain to manage them in a single project.


Creating a New Panel

Creating a new panel is very simple. All you need to do is run the following command:

php artisan make:filament-panel {name}

In our case, we create a new panel named Accountant:

php artisan make:filament-panel Accountant

This will create a new file in app/Providers/Filament called AccountantPanelProvider. This file is responsible for registering...

The full lesson is only for Premium Members.
Want to access all 24 lessons of this course? (101 min read)

You also get:

  • 76 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord