Zen Nitiruj
Conditionally add and update relations
You can add ->authorize() in your action component. In this case, you are using Repeater you can customize addAction by follow with https://filamentphp.com/docs/3.x/forms/fields/repeater
->addAction(fn($action)=> $action->authorize(...
16 replies
Slow action modal opening times on resource table
It looks complicated. Look like you try to get all in formation loaded in the table. Each table record will queries many many times. I would think that you should make another database table for this. If your data have been saved to another table like group_order_management, where they created final result. Then your model GroupOrderManagement and This resource will just load quickly in table.
27 replies
Why selectColumn is not working
I think, it should be many to many relationship in to table model_has_roles. Anyway, if you just want a user has only a role, you may do this and set role_id in user table to make relationship. Doing that you should not use Shield, it totally different design.
8 replies