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?
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?
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.