Nibir Ahmed
Guidance about the authorization and role management
Hello guys,
I want to know the proper way of developing any app in filament. Started using it, playing around with it and it's fun.
But I want to know the best practices.
Things I want (Requirements)
- I want my app to have an admin and few other roles (which will ultimately have the permissions). So, for that what is the best way. 1. Having few panels or 2. having one panel and then authorizing the resources or something.
- Again admin will see all the listing of the models but the users will see only theirs, maybe can or cant edit based on permissions
- Also from the admin panel I want to create roles with permissions and the users having that permission will see only those resources (so again in this case should I use multi panels or single? if any how will I do that)
- Will shield plugin be useful if I want the above functionality like from one panel I can disable functionality of another panel
So overall what is the best way of doing those?
5 replies
Custom Header Action In Resources
Hello guys,
Apology for the silly question. I'm new to filament.
I added a resource and I don't want the create button for the resource (Section). The sections are generated by a php code.
So I disabled the create method by
and now I tried to add a custom function to header by adding this code in my resource class
just to check if the button is visible
But the button is not added to the top
4 replies