ReplicateAction. How save relationship

->action(function (Medication $record, array $data) { $replica = $record->duplicate(); $replica->fill($data); if ($replica->save()) { Notification::make() ->title('Replication complete') ->success() ->send(); }

now issue is relations saved field what i replicate
Was this page helpful?