Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/246.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel include(DatabaseSeeder.php):无法打开流:没有这样的文件或目录_Php_Laravel 5.4 - Fatal编程技术网

Laravel include(DatabaseSeeder.php):无法打开流:没有这样的文件或目录

Laravel include(DatabaseSeeder.php):无法打开流:没有这样的文件或目录,php,laravel-5.4,Php,Laravel 5.4,我正在Windows10中使用Laravel5.4.30,使用PHP7.1.4和composer 1.4.1 当我执行 php artisan db:seed 我得到这些信息 PS D:\data\new_site\test > php artisan db:seed [ErrorException] include(D:\data\new_site\test\vendor\composer/../../seeds/DatabaseSeeder.php): failed to

我正在Windows10中使用Laravel5.4.30,使用PHP7.1.4和composer 1.4.1

当我执行

php artisan db:seed
我得到这些信息

PS D:\data\new_site\test > php artisan db:seed


  [ErrorException]
  include(D:\data\new_site\test\vendor\composer/../../seeds/DatabaseSeeder.php): failed to open stream: No such file or directory
DatabaseSeeder.php
的路径是

D:\data\new_site\test\database\seeds\DatabaseSeeder.php
我的Laravel文件夹的路径是

D:\data\new_site\test
我已经执行了
composer dump autoload
,但它没有解决问题


如何解决问题?

问题已解决。似乎这是作曲家的错误。我将我的composer版本从1.4.1升级到1.5.2,并执行
composer dump autoload
最后,我可以成功地运行播种机