Dacapo is a Laravel migration file creation support library. Define the table structure in the schema yml file, Always generate the latest and tidy migration file.
This library is intended for use only in the coding phase. In the operation phase, uninstall and return to normal migration operation.
$ composer require --dev ucan-lab/laravel-dacapo
$ php artisan dacapo:init
database/schemas/default.yml
By default, a schema file for Laravel6.0 is generated.
Reference example of schema yml and output example of migration file: Example schema.yml
$ php artisan dacapo:init --laravel50
$ php artisan dacapo:init --laravel57
$ php artisan dacapo:generate
$ php artisan dacapo:models