F
Filament16mo ago
skpi4u

Role based access of resources

Hi, i am working on a Dance School project having multiple branches, Currently i have two type of users, First Administrator, who can manage all the things, Second users are branch admin, who can manage their own branch like Student management, Fee Management, Expense Management, Faculty Management. Can i use Multiple Panel, Tenants for this. Please Suggest me what is the best way to proceed with. Thanks
1 Reply
JamesTechDude
JamesTechDude16mo ago
@josef said it best on another thread: Panels are a set of resources. So you can have a panel for e.g. sales that see one set of resource, while the admin sees another. If both see the same set of resources, but have different permissions, one panel and policies should work best. For you, it sounds like you will have the same resources for everyone but just want to limit which ones certain people see: - First administrator can see everything - Branch admin can manage only their own branch - and more In this case I would look into Policies, which is a Laravel thing that Filament will honor/use seamlessly: https://laravel.com/docs/10.x/authorization#creating-policies I also recommend this video that @tuto1902 made that touches bases on this policy setup, fast forward to about 57 minutes 48 seconds: https://www.youtube.com/watch?v=a9u_ByM5YCk
Want results from more Discord servers?
Add your server