When we develop Laravel projects, we typically separate migration files and seed files.
But in production environment it’s convenient to integrate migration and seeder in 1 file.
We normally need to update migration and seeders while developing projects but this causes a lot of problems especially because of foreign key constraint. We can avoid many of such problems by integrating migration and seeder.