Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

Just comment out the old calls on DatabaseSeeder? You can also use

artisan db:seed --class=UserTableSeeder

to seed a specific table

Last updated 2 years ago.
0

If the problem is not to duplicate data, you can truncate the table with

Model::truncate();

directly in seed before inserting new rows

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

teobalds teobalds Joined 30 Jul 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.