FilamentF
Filament14mo ago
toeknee

Relationship with a relationship after create?

I need to add some relationship data to a relationships relationship. For example:

Order -> products -> customisations

In a duplicate order function, We have the repeater loading which loads the products relationship, I want to then clone over the customisations relationship. We don't seem to be able to use mutateRelationshipDataBeforeCreating to assign the relationship values.. and theres no record at this state, it's almost like we need an afterCreate function on a repeater relationship?
Was this page helpful?