New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

kreitje/l4-schemad-migrations

Generate a schema file for Laravel migration with a MySQL database.
10 2
Install
composer require kreitje/l4-schemad-migrations:dev-master
PHP:>=5.3.0
License:MIT
Last Updated:Jun 5, 2014
Links: GitHub  ·  Packagist
Maintainer: kreitje

#Laravel4 Schemad Migrations

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.

This code is based off of http://laravelsnippets.com/snippets/convert-an-existing-mysql-database-to-migrations by michaeljcalkins

##Setup

Modify your config/app.php and update the providers to:

Comment out the following line:

'Illuminate\Database\MigrationServiceProvider',

Add in the following line:

'Kreitje\L4SchemadMigrations\L4SchemadMigrationsServiceProvider'

Related Packages

javaabu/schema

Extends the Laravel database schema with convenience methods used by javaabu/gen...

15,305 0
kalani/validation-rule-generator

Laravel 4 class to automatically generate validation rules based on table schema

1,044 8
subscribo/schemabuilder

Schema builder for building models, migrations, etc from schema

120 0
autn/laravel-schema

The Laravel schema package.

3,765 6
five-say/laravel-schema-extend

support MySQL 'column comment' and 'table comment'.

898 51