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?
學(xué)習(xí)是最好的投資!
Actually, after you delete it, it doesn’t think you deleted it and it’s vendor/composer/autoload_classmap.php
會緩存這,所以會報(bào)錯(cuò),因?yàn)檎也坏搅?這個(gè)時(shí)候重新生成autoload_classmap.php
,執(zhí)行這個(gè)就composer dump-autoload
ok
First open the command prompt in the project directory and run composer install
Is this file 2016_11_27_181313_create_articles_table.php missing?