Laravel's command: php artisan make:model ModelName
automatically creating creating migration class with the Model Name. Is there are way that we could pass additional parameters to the make:model command so that it ignores creating migration class?
You should write this command:php artisan make:model modelName --no-migration
Artisan CLI providers a help message for all commands.
For instance php artisan help make:model
shows a list of available cli arguments for the make:model
command.
UPDATE [2015]:
Starting 5.1, migrations are not automatically created anymore. You can use the flag --migration
to generate one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With