iseed cannot put table seeders in DatabaseSeeder.php according to foreign key relationships
parmonov98 opened this issue · 1 comments
parmonov98 commented
it throws errors if some table linked via foreign key and the table seeders are stacked in a wrong order.
adgower commented
it throws errors if some table linked via foreign key and the table seeders are stacked in a wrong order.
If not critical you can always modify the seeder to add
top:
Schema::disableForeignKeyConstraints();
bottom:
Schema::enableForeignKeyConstraints();