Reputation: 5896
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!
Upvotes: 2
Views: 2005
Reputation: 111829
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.
Upvotes: 1