Support the ongoing development of Laravel.io →
Requests Database
Last updated 1 year ago.
0

ALTER TABLE users AUTO_INCREMENT = some_number_here;

0

Are you using a migration? if not, as ddimaria said, just add the 'auto increment' property to the id column of your table.

0

I am using migrations. =/

Sensors said:

Are you using a migration? if not, as ddimaria said, just add the 'auto increment' property to the id column of your table.

0

You can still add that statement in a migration after you build the table:

DB::update('ALTER TABLE users AUTO_INCREMENT = some_number_here');
0

Sign in to participate in this thread!

Eventy

Your banner here too?

DiegoHeras diegoheras Joined 26 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.