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 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
2 Replies
ZedoX
ZedoX15mo ago
No description
Solution
Dennis Koch
Dennis Koch15mo ago
Seems my database table was really broken and always used 0 for auto-increment. Since it was local I fixed it my migrating fresh.
Want results from more Discord servers?
Add your server