Laravel:重启Vagrant(Homestead)后出现类错误
I have been working on the project for past few days. I use Vagrant (Homestead) to do the development work and it has been working great.
Today I have restarted my PC and execute a command vagrant up
When I access the url www.domain.dev
and I get an error:
Fatal error: Class 'Symfony\Component\HttpFoundation\Request' not found in /home/vagrant/Code/project1/vendor/laravel/framework/src/Illuminate/Http/Request.php on line 6
First time I see this error.
I am lost here, how to solve this issue?
过去几天我一直在研究这个项目。 我使用Vagrant(Homestead)进行开发工作并且工作得很好。 p>
今天我重新启动了我的PC并执行命令 当我访问url 致命错误 :类'Symfony \ Component \ HttpFoundation \ Request'未在第6行的
/home/vagrant/Code/project1/vendor/laravel/framework/src/Illuminate/Http/Request.php
中找到 p >
blockquote>
我第一次看到这个错误。 p>
我迷失了,如何解决这个问题? p>
vagrant up code> p>
www.domain.dev code>时出现错误: p>
As stated above in the comments, you may have lost a file in your vendors
directory by mistake. When ever you receive an error stating something is not found in a vendors/*
directory you can just delete the whole vendors
directory and use composer install
to get a fresh set of files.