简体   繁体   English

Laravel 5.7-作曲家中缺少文件?

[英]Laravel 5.7 - Missing files in composer?

I´m trying to setup a fresh install of Laravel with Laradock. 我正在尝试使用Laradock全新安装Laravel。 Actually, a strange thing happens: An empty page shows in the browser and nginx shows up this error in my console... 实际上,发生了一件奇怪的事情:浏览器中显示一个空白页面,而nginx在我的控制台中显示此错误...

PHP message: PHP Fatal error: require(): Failed opening required '/var/www/vendor/composer/../../tests/Database/stubs/MigrationCreatorFakeMigration.php' (include_path='.:/usr/local/lib/php') in /var/www/vendor/composer/autoload_real.php on line 66" while reading response header from upstream, client: 172.19.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://172.19.0.6:9000", host: "-> THE HOST <-" PHP消息:PHP致命错误:require():无法打开所需的'/var/www/vendor/composer/../../tests/Datas/stubs/MigrationCreatorFakeMigration.php'(include_path ='。:/ usr / local在第66行上的/var/www/vendor/composer/autoload_real.php中的/ lib / php')中,同时从上游读取响应头,客户端:172.19.0.1,服务器:localhost,请求:“ GET / HTTP / 1.1”,上游:“ fastcgi://172.19.0.6:9000”,主持人:“->主机<-”

I can find any reference of this missing file, neither on the Laravel repo. 我可以在Laravel存储库中找到此丢失文件的任何参考。

Any help is appreciated, thanks in advance (: 感谢您的任何帮助,在此先感谢(:

remove folder vendor then run commands below: 删除文件夹供应商,然后运行以下命令:

$ composer install
$ composer dump-autoload
$ php artisan optimize
$ php artisan cache:clear
$ php artisan route:cache
$ php artisan view:clear
$ php artisan config:cache
$ php artisan config:clear

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM