Answer the question
In order to leave comments, you need to log in
How can you automate the creation of migrations for laravel?
I am migrating my site to Laravel.
DB - 180+ tables, some tables have 100+ columns.
Writing for each migration and seeding is unrealistic.
Is there a way to automate this?
Answer the question
In order to leave comments, you need to log in
Why write migrations for existing tables?
Just throw it in a dump and if necessary, "run" it.
Under the seeds, it’s clear that you still have to use your hands, but then again, will it be necessary to write seeds for all tables? If you're going to cover everything with tests, it's a ton of work anyway, and creating seeds/or even migrations is the least of your problems.
try this https://github.com/Xethron/migrations-generator
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question