F
Filament15mo ago
Panda

Actions on RelationManager not showing even after disabling policies

I've commented the policy for Series model in AuthServiceProvider and disabled the policy checking on the SeriesRelationManager but still I cannot see the create, edit and delete options in the table. I've cleared the application cache and re-installed the vendor to prevent cache issues but still no luck. I've attached the table picture and my SeriesRelationManager code in screenshots for better understanding. Any help would be much appreciated.
No description
No description
2 Replies
cheesegrits
cheesegrits15mo ago
Is this when viewing or editing the parent record? If it's when viewing, the default in Filament v3 is to hide all actions which "change" the resource. So you only see edit, create, delete etc when editing the parent record. You can override this behavior. https://filamentphp.com/docs/3.x/panels/resources/relation-managers#read-only-mode
Panda
PandaOP15mo ago
Thank you so much! This solved the issue.
Want results from more Discord servers?
Add your server