table actions question
I have two questions:
1. I am using Filament's view feature to view the content of my messages, but it appears to have formatting issues (layout problem). How can I resolve this issue? The situation is shown in the attached image. If you need additional information, please let me know what kind of information you require.
2. I am planning to have two roles in this system: an administrator and a regular user. For instance, I want regular users to only view my messages, meaning they can only use the "view" feature, while adding, deleting, and modifying messages should be restricted to administrators. Should I create a separate dashboard for this purpose, or should I use different permissions to control access?
3 Replies
1. This is because the word is so big. You would need to put a break word class as an attribute, or add an overflow hidden class with scrollable class using ->extraAttributes()
2. No, one dashboard is perfect. Just add policies
I completed my login and functionality using Jetstream. I suppose I need to design a field in the database to help distinguish whether a user is an administrator. The next step is to set up different functionalities based on role permissions. So, where should I go to set or edit the code to achieve this permission control?
It has built in roles already, but you can use any packages in the filament plugins dir. I use #althinect-spatie-roles-permissions for simplicity myself.