Replicate Action updating cloned record
Hello Guys
i added a form to the replicate action everything is fine, but the problem is that the cloned record, is updating too.
province_short is foreign key so it's relation, only province_short is updating at the cloned record.
thanks in advance
Tables\Actions\ReplicateAction::make()
->excludeAttributes(['province_short', 'updated_at'])
->beforeReplicaSaved(function (Model $replica, $data, $record): void {
$replica->fill($data);
})
->form(self::formComponents()),
0 Replies