laravel-excel-seeder icon indicating copy to clipboard operation
laravel-excel-seeder copied to clipboard

Disable foriegn key constraints

Open anchan42 opened this issue 7 months ago • 3 comments

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.

anchan42 avatar Jun 27 '24 11:06 anchan42