laravel-excel-seeder
laravel-excel-seeder copied to clipboard
Disable foriegn key constraints
How can I disable the foriegn key constraint before seeding? This is so I can seed the table at random order and also allow some 'dirty' data to be seeded. I tried to call Schema::disableForeignKeyConstraints(); before calling the seeder but it didn't work.