How should I use Filament in my system?
In my setup, users can have one of three roles: admin, doctor, or patient. Should I create a separate Admin PanelProvider for each role? Is that possible? My concern is that the default PanelProvider uses "admin" for its ID and path, so I'm wondering if I should create two additional providers with IDs and paths corresponding to each role. Or is it better and more recommended to use a single panel and restrict options based on roles, as is commonly done?
Solution:Jump to solution
It’s entirely up to you. Both methods will work. Just depends on what your app needs. But neither is right or wrong or necessarily better than the other.
3 Replies
Solution
It’s entirely up to you. Both methods will work. Just depends on what your app needs. But neither is right or wrong or necessarily better than the other.
Sorry, there’s not a definitive answer to give you.
I get it, thank you