Export table as Laravel Migration in TablePlus
TablePlus just released a plugin that lets you easily export a table to a Laravel Migration.
Even though I always build my migrations first on new projects, it’s pretty useful when you take over a new project whose migrations are not up to date or a project that was built with another framework.
We just released a plugin which can export a table as Laravel Migration Script. It's open source: https://t.co/5DKc3hphJE PR is welcome. Note this plugin requires TablePlus build 200 and above, and can be installed via the plugin manager: Cmd + L Thanks @laravelnews @laravelphp pic.twitter.com/Mss0WheCmv
— TablePlus (@TablePlus) March 4, 2019
In order to install it, just open TablePlus and go to the plugins panel (Cmd + L) and install “Dump Table”.
Once it’s installed, open a connection and right-click on a table. You should see a “Copy Script As” with a “Laravel Migration” option.
Once you click that option, the migration will be generated and copied to your clipboard.