Backend Discussion

Integrate migration and seeder in Laravel

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.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *