Unable to edit Resource in Resource table
I have a GroupResource, which I used to be able to edit, but now the edit button in the resource table no longer exists. I have attached my app/Filament/Resources/GroupResource.php.
I have filament-shield installed as well, but I also have a UserResource, which I have no issues with editing.
Any debugging I could make to figure out what could be causing this?
I have attached a screenshot of the resource table as well.
4 Replies
I am also unable to edit the GroupsRelationManager relations on my UserResource, And I am thinking this must be directly related.
I have attached the GroupsRelationManager.php
I am realising that this might be unrelated to filament, but what requirements should there be for editing of resources to work?
Solution
Sounds like you’re missing a policy for ‘Group’
Where would a policy for 'Group' typically exist? I used to be able to edit my groups in GroupResource, so I am a little confused about why this would be an issue now?
Thank you! You pointed me in the right direction. I have a GroupPolicy that is separate from my filament-shield/spatie permission setup, only allowing group members with a certain role to edit groups.
hi
having problem on my project
i have LAMP setup server and having issue running filament project on public #403