F
Filament9mo ago
bruh

Mutate ManageRelatedRecords data before saving

I'm new to Filament and I can't figure out if it's possible to mutate ManageRelatedRecords before saving the same way as for example in EditRecord
5 Replies
toeknee
toeknee9mo ago
As above? Or as a relationship manager?
bruh
bruhOP9mo ago
I mean a Relation page like here https://filamentphp.com/docs/3.x/panels/resources/relation-managers#relation-pages, so I've created a separate class that extends ManageRelatedRecords, and added it to my resource sub-navigation
bruh
bruhOP9mo ago
But as i see, ManageRelatedRecords doesn't have any method that responsible for data processing or saving Maybe I should customize CreateAction?
toeknee
toeknee9mo ago
So on the button you can add the mutators to those button actions
Want results from more Discord servers?
Add your server