Laravel got an error when re-executing php artisan make:migration
PHPz
PHPz 2017-05-16 16:49:31
0
3
469

Laravel re-executed php artisan make:migration when error:


$ php artisan make:migration create_articles_table


  [ErrorException]
  include(D:\wnmp\www\laravel-5-3-dev\vendor\composer/../../database/migratio
  ns/2016_11_27_181313_create_articles_table.php): failed to open stream: No
  such file or directory

There was no error the first time. Then I deleted the generated file and repeated the above command, but this error occurred. How can I fix it?

PHPz
PHPz

学习是最好的投资!

reply all(3)
phpcn_u1582

Actually, after you delete it, it doesn’t think you deleted it and it’s vendor/composer/autoload_classmap.php会缓存这,所以会报错,因为找不到了,这个时候重新生成autoload_classmap.php,执行这个就composer dump-autoloadok

Ty80

First open the command prompt in the project directory and run composer install

Peter_Zhu

Is this file 2016_11_27_181313_create_articles_table.php missing?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!