jeroenzwart / laravel-csv-seeder

Seed your database with Laravel using CSV files
Other
92 stars 30 forks source link

Auto incrementing id #5

Closed shaneparsons closed 5 years ago

shaneparsons commented 5 years ago

Is there a way to have the id column of the table be auto incremented rather than having to map to an id column in the csv?

shaneparsons commented 5 years ago

Nevermind, it seems like it already works by default.

jeroenzwart commented 5 years ago

Skip the id column in your csv and set auto incremented in your table is a better way.

shaneparsons commented 5 years ago

Yeah, that's what I ended up doing. Cheers!