F
Filament5d ago
kabu

Its possible to set the panel color by database ?

Is it possible to change the panel's color from the database without it being hardcoded? My goal is to have a form that allows changing the panel's color trying this actually but dsnt work:
No description
Solution:
Hi, in a serviceProvider, use Filament::serving(function () {})
Jump to solution
6 Replies
toeknee
toeknee5d ago
Did you set the middleware to be persistent?
toeknee
toeknee5d ago
Laravel
Security | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Solution
Alex'R
Alex'R5d ago
Hi, in a serviceProvider, use Filament::serving(function () {})
Alex'R
Alex'R5d ago
and inside you can register your colors with FilamentColor::register(['primary' => Colors::Blue]); in boot method of course
kabu
kabuOP5d ago
thank you! that solve my problem 🫡
Alex'R
Alex'R5d ago
you're welcome

Did you find this page helpful?