dtv995719 2014-09-17 10:40
浏览 59
已采纳

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?

  • 写回答

1条回答 默认 最新

  • douangoo48863 2014-09-17 11:02
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?