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);


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.
Was this page helpful?