dev-master
9999999-devGenerate a schema file for Laravel migration with a MySQL database.
MIT
The Requires
- php >=5.3.0
- illuminate/support 4.2.*
by Jeff Kreitner
laravel schema
Wallogit.com
2017 © Pedro Peláez
Generate a schema file for Laravel migration with a MySQL database.
This will generate a schema.php file in your app/database/migrations file based on your current database schema. This only works with MySQL. When your run php artisan migrate it will automatically generate the schema file for you after the migrations have run., (*1)
This code is based off of http://laravelsnippets.com/snippets/convert-an-existing-mysql-database-to-migrations by michaeljcalkins, (*2)
Modify your config/app.php and update the providers to:, (*3)
Comment out the following line:, (*4)
'Illuminate\Database\MigrationServiceProvider',
Add in the following line:, (*5)
'Kreitje\L4SchemadMigrations\L4SchemadMigrationsServiceProvider'
Generate a schema file for Laravel migration with a MySQL database.
MIT
laravel schema