© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Dennis Koch

ReplicateAction new model ID is 0

Not really Filament related, but I am running into an issue where the replica ID is always 0:

$spec = \App\Models\Specification::first();
$replica = $spec->replicate();
$replica->save();

dd($replica->wasRecentlyCreated, $replica->id);
$spec = \App\Models\Specification::first();
$replica = $spec->replicate();
$replica->save();

dd($replica->wasRecentlyCreated, $replica->id);


Yields
true, 0
true, 0


Anyone ran into this before?
I found stuff related to Telescope, but I don't have Telescope installed.
Solution
Seems my database table was really broken and always used 0 for auto-increment. Since it was local I fixed it my migrating fresh.
Jump to solution
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

ReplicateAction in bulkActions
FilamentFFilament / ❓┊help
12mo ago
ReplicateAction Not Showing
FilamentFFilament / ❓┊help
2y ago
ReplicateAction. How save relationship
FilamentFFilament / ❓┊help
3y ago
Get Model id on Widget
FilamentFFilament / ❓┊help
2y ago