
Export from MySQL Workbench to a Laravel Migration
MySQL Workbench is a cross-platform GPL app that allows you to fully design and document your databases through the app.
Brandon Eckenrode, created a plugin that allows you to export a MySQL Workbench model to Laravel 5 migrations that follow PSR-2 coding standards. When exported, each migration is generated and saved in its own, properly named, migration file.
This works by downloading the plugin from GitHub, then open MySQL Workbench and go to the Scripting menu, Install Plugin/Module. Next select the export-laravel-5-migrations.py
file and restart the app.
When you open it back up navigate to File -> New Model and add a basic structure for a table.
Next, navigate to Tools -> Catalog -> Export Laravel 5 Migration, and a window will open with the migration ready for you to download:
You can download this from GitHub and learn about Workbench Modeling on the MySQL site.
If you are a Sequel Pro user be sure and check out a similar style plugin, Export from Sequel Pro to a Laravel Migration
Filed in: Development Tools / Migrations / MySQL
Enjoy this? Get Laravel News delivered straight to your inbox every Sunday.
No Spam, ever. We'll never share your email address and you can opt out at any time.
Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.
Laravel Jobs

- Senior Laravel Engineer
-
Remote okay (must already live in USA)
Hawthorne Effect - Senior Software Engineer (Remote - Contract)
-
Remote
Koodi Systems - PHP Developer
-
Pittsburgh / Remote
Sequoia Waste Solutions - Software Developer
-
Eindhoven
Simac IDS - Application Developer Level II (CakePHP / MySql / Vue.js)
-
Lancaster, PA
Harbor Compliance - FULL STACK LARAVEL DEVELOPER
-
LONDON - WEST END
AMPERSAND HEATLH - Mid/Senior Laravel Developer - U.S. Only
-
Kenner, Louisiana
Profit Miner Technologies
Getting started with Watson Personality Insights
One of the most important things as a business owner is being able to understand your customers’ needs and want…
Laravel Spark Open Sources its Integration Tests
Spark is a commercial Laravel package that provides scaffolding for quickly setting up a SaaS app and more. Spark was…