2017 © Pedro Peláez
 

library migrations-generator

Migrations generator for Laravel.

image

josh-taylor/migrations-generator

Migrations generator for Laravel.

  • Monday, March 7, 2016
  • by josh-taylor
  • Repository
  • 2 Watchers
  • 3 Stars
  • 88 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Migrations Generator Build Status

Generate migrations from an existing database. Ideal for use when migrating an app to Laravel., (*1)

Please note, this is still really a work in progress. Worth noting the things left to do below., (*2)

Installation

Step 1: Composer

From the command line run:, (*3)

composer require josh-taylor/migrations-generator --dev

Step 2: Service Provider

For your Laravel app, you will only want these commands available during development, open app/Providers\AppServiceProvider.php and add in to the register() method:, (*4)

if ($this->app->environment() == 'local') {
  $this->app->register('JoshTaylor\MigrationsGenerator\MigrationsGeneratorServiceProvider');
}

Usage

Run from the command line:, (*5)

php artisan migrate:generate

Bask in the glory of all these migrations created for you., (*6)

Still left to do:

The Versions