© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
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()),
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Replicate action
FilamentFFilament / ❓┊help
2y ago
Updating record with custom action
FilamentFFilament / ❓┊help
2y ago
Updating record via modal footer action
FilamentFFilament / ❓┊help
3y ago
Injected $record the same for each recordActions Action
FilamentFFilament / ❓┊help
4w ago