F
Filament6mo ago
Haydra

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
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server