我有一个git克隆了一个现有的项目到我的流浪的宅基地机器,设置了Homestead.yaml并托管文件并运行vagrant配置,但首先我得到了这个错误:
Warning: require(/home/vagrant/Projects/MyProject/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/Projects/MyProject/bootstrap/autoload.php on line 17
环顾四周之后,我看到很多时候解决方案只是为了运行
composer install
或
composer update
我做到了,但之后我发现了一个错误:
Whoops, looks like something went wrong.
在控制台中,我检查了一下:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
答案 0 :(得分:0)
删除composer.lock
并再次运行composer install
。
答案 1 :(得分:0)
运行此命令
php artisan config:clear