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:
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.
Jump to solution
3 Replies
Solution
awcodes
awcodes3mo ago
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.
awcodes
awcodes3mo ago
Sorry, there’s not a definitive answer to give you.
demonshide
demonshideOP3mo ago
I get it, thank you
Want results from more Discord servers?
Add your server