Is it possible to create a migration in Laravel 4 from an existing database?
Coming to Laravel 5.5 is an improvement on this with a new command named migrate:fresh . The difference between “refresh” and “fresh” is that the new fresh command skips all the down methods or the rollback by dropping the tables, then running through the up methods.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With