Skip to content

Conversation

@vinaydotblog
Copy link
Contributor

Laravel 5's artisan make:model ModelName command creates a model as well as migration file for the given model, you need to specify --no-migration flag in order to skip the automatic migration generation by laravel.

Because this generator tool explicitly generates migration based on given schema, we don't need that extra migration file, so we can safely always pass --no-migration flag to skip generation of that extra file.

Which ultimately fixes #40.

@tabacitu
Copy link
Contributor

tabacitu commented Mar 8, 2020

Great addition! Thank you @vinnizworld . Merging it into the v2 branch now. Let me know if you're interested in helping out with other stuff in v2 - this repo is finally getting up-to-date, and the attention it deserves, after we've taken it for granted all these years 😄

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 migrations files are generated on php artisan make:migration:schema.

2 participants