How to Use mutateFormDataBeforeFill or mutateFormDataBeforeSave for Related Data in Relationships

I have two models, a Customer associated with multiple Contacts. When adding a Customer, I use Repeater::make('contacts')->relationship('contacts')->schema() to add related data. How can I use mutateFormDataBeforeFill or mutateFormDataBeforeSave for Contact data when creating and editing a Customer?
1 Reply
Dennis Koch
Dennis Koch4mo ago
Similar methods exists on the Repeater like ->mutateRelationshipDataBeforeSave() and so on
Want results from more Discord servers?
Add your server