Answer the question
In order to leave comments, you need to log in
Why doesn't migration creation work when creating a model?
Hello) I am mastering this framework)
According to the translation of the documentation
If you want to create a DB migration when you create the model, use the --migration or -m option
If you would like to generate a database migration when you generate the model, you may use the --migration or -m option
php artisan make:model MyModel -m
Model created successfully.
[ErrorException]
include(/home/projects/web/laravel/public_html/vendor/composer/../
../database/migrations/2017_05_02_110722_create_calculators_table.php): failed to open stream: No such file or directory
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question