Why does not creating the model create the migration?

2

I'm starting on Laravel 5 and then this tutorial >.

When creating model

php artisan make:model Tarefa

It does not create the migration in database/migrations/ as it would be supposed, does anyone know the reason?

    
asked by anonymous 04.09.2015 / 16:12

1 answer

2

According to the Laravel documentation , you need to pass the argument --migration or -m to this command:

  

If you would like to generate the migration database when you generate the model, you can use the --migration or -m option:

php artisan make:model User --migration

php artisan make:model User -m

This way the migration will be created.

    
04.09.2015 / 16:19