过去几天我一直在做这个项目。我用Vagrant(Homestead)做开发工作,它一直很好。
今天我重新启动了我的电脑并执行了一个命令vagrant up
当我访问url www.domain.dev
时,我得到一个错误:
致命错误:类"Symfony''Component''HttpFoundation''Request"不是在中找到/home/varrant/Code/project1/vendor/laravel/framework/src/Ilightaine/Http/Request.php在线6
我第一次看到这个错误。
我迷失在这里,如何解决这个问题?
如上所述,您可能错误地丢失了vendors
目录中的一个文件。当你收到一个错误,说在vendors/*
目录中找不到什么东西时,你可以删除整个vendors
目录,然后使用composer install
来获得一组新的文件。