Tricks

Different admin panel theme per user

Aug 18, 2022
David VINCENT
Admin panel

If you want to provide a different Filament theme based on user's profile, you can do that by adding those lines in your boot() service provider:

public function boot()
{
Filament::serving(function () {
Filament::registerTheme(
auth()->user()->isAdmin() ? 'theme1' : 'theme2',
);
})
}

No comments yet…