简体   繁体   中英

Laravel:Class Error after restarting 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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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