php artisan generate:migrate ErrorException

Hello, when I try to run:

php artisan generate:migration create_users_table

I get this error:

_013940_create_users_table.php): failed to open stream: No such file or di

I have ran composer install/update, I created the project using composer, etc.

I am on Win 7 using xampp and virtual hosts. Thanks for any suggestions you can give me.

Edit: Please note for some reason it uses "" instead of and im not sure why.

  • 2 years ago

This may help,

dump-autoload composer once try,

composer dump-autoload


Check this out:

I had the same issue and this fixed it. But it depends on your laravel version and generator version.

For my case, I manually deleted User.php and also remove two migration files under \database\migrations\ path. Then when I run make:model User -m, I got the error of creating migration. Then I removed the created User.php under app folder. Then run composer dump-autoload. After that run make:model command again and it works.