Setting value of relationship form field via $set closure
Does anyone know if it's possible to update a relationship field via the
Specifically, I've a form field representing an underlying
I've tried passing both the model instance itself and the instance's ID, but neither seems to work, so I'm wondering if there's some other approach I need to take.
$set closure?Specifically, I've a form field representing an underlying
belongsToMany relationship, which I need to be able to modify based on data that's fetched in the afterStateUpdated method of another field within the form.I've tried passing both the model instance itself and the instance's ID, but neither seems to work, so I'm wondering if there's some other approach I need to take.