CreateAction inside RelationManager with auto id of current ownerRecord for the form

CreateAction inside RelationManager with auto id of current ownerRecord for the form
2 Replies
toeknee
toeknee4mo ago
->mutateBeforeCreate(function($data, $livewire) {
$data['parent_id'] = $livewire->parent_record->id;
return $data;
}
->mutateBeforeCreate(function($data, $livewire) {
$data['parent_id'] = $livewire->parent_record->id;
return $data;
}
Something like that, there is a chat in here somewhere recently where the person advised exactly how they did it, but the is close
Gregory RODRIGUES
Gregory RODRIGUESOP4mo ago
i find but it 's not exactly this process i need thanks for help
Want results from more Discord servers?
Add your server