Laravel主页未加载

时间:2018-03-26 20:17:45

标签: php laravel vagrant homestead

在Chrome中输入https://deepdivecms.test/时会返回以下错误

警告:require(/ home / vagrant / Code / deepdivecms / public /../ vendor / autoload.php):无法打开流:/ home / vagrant / Code / deepdivecms / public /中没有此类文件或目录第24行的index.php 调用堆栈

时间记忆功能位置

1 0.0011 392400 {main}()... / index.php:0

致命错误:require():无法打开所需的' / home / vagrant / Code / deepdivecms / public /../ vendor / autoload.php'第24行/home/vagrant/Code/deepdivecms/public/index.php中的(include_path ='。:/ usr / share / php')

在我的homestead.yaml文件中,我已经放了

站点:      - map:deepdivecms.test       to:/ home / vagrant / Code / deepdivecms / public

同样在我更新的主机文件中

192.168.10.10 deepdivecms.test

1 个答案:

答案 0 :(得分:4)

运行composer install。如果这不起作用,请尝试composer dump-autoload生成自动加载类图。