signifly/laravel-database-refactors

v1.0.0 2018-05-18 15:41 UTC

README

The signifly/laravel-database-refactors package allows you to easily add database refactors to your Laravel app.

Below is a small example of how to use it.

Run the refactor in terminal:

$ php artisan db:refactor --class="UsersTableSeeder"

or programatically in a migration:

// use Illuminate\Support\Facades\Artisan;
Artisan::call('db:refactor', [
    '--class' => 'UsersTableRefactor',
]);

Documentation

Until further documentation is provided, please have a look at the tests.

Installation

You can install the package via composer:

$ composer require signifly/laravel-database-refactors

The package will automatically register itself.

IMPORTANT! Update your composer.json file in order to autoload the database refactors:

    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories",
            "database/refactors"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },

Testing

$ composer test

TO DO

Security

If you discover any security issues, please email dev@signifly.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.