kreitje/l4-schemad-migrations

Generate a schema file for Laravel migration with a MySQL database.
10 2
Install
composer require kreitje/l4-schemad-migrations
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

krisnaxyoga/krisna-crud-gen

Laravel Portable CRUD Engine — Single Source Schema for Admin UI + REST API.

20 0
crazyfd/php-migrations

webman 数据迁移命令,基于Laravel 风格的数据库迁移(php webman migrate / migrate:...

7 0
ayimdomnic/graph-ql-l5.3

Facebook GraphQl for Laravel developers

21 3
suren/laravel-mongo-model-schema

Make mongo data saving and retrieving match defined schemas for Laravel. Support...

2,452 7
pixielity/laravel-sdui

Server-Driven UI Schema Extractors for Filament

0 0