2

Is it possible to create migrations and models form existing database in Laravel 5? Should I do that by artisan command or maybe use special library?

How about your experience in that topic? Thanks for any help!

1 Answer 1

1

You can use https://github.com/Xethron/migrations-generator for this. But be aware that it might not create 100% usable migrations that reflect in 100% real database structure, so you should manually review migrations to make sure everything is it should be.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks, does it also put basic records to database. I mean basic seeding is made?
I used it quite a long time ago. As far as I remember it doesn't support seeding but maybe it has been changed

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.