Is it possible to create a migration in Laravel 4 from an existing database?
3
-
Check this question: stackoverflow.com/questions/13605767/…Damien Pirsy– Damien Pirsy2014-05-07 10:08:09 +00:00Commented May 7, 2014 at 10:08
-
2github.com/barryvdh/laravel-migration-generatorMark Baker– Mark Baker2014-05-07 10:08:30 +00:00Commented May 7, 2014 at 10:08
-
Thanks mark. tested it out and migration file seems to be accurate including relationships.jeanfrg– jeanfrg2014-05-07 10:15:43 +00:00Commented May 7, 2014 at 10:15
Add a comment
|
1 Answer
Here is the linked script, that does, what is asked here.
I also found this tool (actually a Gist code) and I highly prefer it for its simplicity.
2 Comments
Gadoma
also check out my extensive answer linked below, you might find it useful as well: stackoverflow.com/questions/20271670/…
Martin Sheeks
Gist code worked beautifully. Many thanks for the link!