Resource repeater save record field inside relation manager

Hello, I have a resource with a repeater. Inside the repeater I have a field that I save using mutate:
->mutateRelationshipDataBeforeCreateUsing(function (array $data, Get $get): array {
$data['ticket_id'] = $get('ticket_id');
return $data;
})
->mutateRelationshipDataBeforeCreateUsing(function (array $data, Get $get): array {
$data['ticket_id'] = $get('ticket_id');
return $data;
})
Now I want to use the resource within a relationship manager, but I don't know how to pass the ticket_id, currently it gives an error that it cannot be null.
0 Replies
No replies yetBe the first to reply to this messageJoin