[英]Laravel home page not loading
While typing https://deepdivecms.test/ in Chrome it returns the following error 在Chrome中输入https://deepdivecms.test/时 ,它会返回以下错误
Warning: require(/home/vagrant/Code/deepdivecms/public/../vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/Code/deepdivecms/public/index.php on line 24 Call Stack 警告:require(/ home / vagrant / Code / deepdivecms / public /../ vendor / autoload.php):无法打开流:/home/vagrant/Code/deepdivecms/public/index.php中没有此类文件或目录在第24行调用堆栈
1 0.0011 392400 {main}( ) .../index.php:0 1 0.0011 392400 {main}()... / index.php:0
Fatal error: require(): Failed opening required '/home/vagrant/Code/deepdivecms/public/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/vagrant/Code/deepdivecms/public/index.php on line 24 致命错误:require():无法在/ home / vagrant中打开所需的'/home/vagrant/Code/deepdivecms/public/../vendor/autoload.php'(include_path ='。:/ usr / share / php')第24行的/Code/deepdivecms/public/index.php
in my homestead.yaml file, I have put 在我的homestead.yaml文件中
sites: - map: deepdivecms.test to: /home/vagrant/Code/deepdivecms/public 网站:-地图:deepdivecms.test到:/ home / vagrant / Code / deepdivecms / public
Also in the host file i have updated 另外在主机文件中我已经更新
192.168.10.10 deepdivecms.test 192.168.10.10 deepdivecms.test
Run composer install
. 运行
composer install
。 If that doesn't work, try composer dump-autoload
to generate your autoload classmap. 如果这不起作用,请尝试使用
composer dump-autoload
生成自动加载类映射。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.