安装时Laravel错误

时间:2016-02-14 14:38:02

标签: php laravel laravel-5

我刚刚通过Homestead安装了Laravel,我试图访问该页面,它给了我这些错误:

( ! ) Warning: require(/home/vagrant/sites/connected/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/sites/connected/bootstrap/autoload.php on line 17
Call Stack
#   Time    Memory  Function    Location
1   0.0002  355664  {main}( )   .../index.php:0
2   0.0002  355912  require( '/home/vagrant/sites/connected/bootstrap/autoload.php' )   .../index.php:22

( ! ) Fatal error: require(): Failed opening required '/home/vagrant/sites/connected/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:') in /home/vagrant/sites/connected/bootstrap/autoload.php on line 17
Call Stack
#   Time    Memory  Function    Location
1   0.0002  355664  {main}( )   .../index.php:0
2   0.0002  355912  require( '/home/vagrant/sites/connected/bootstrap/autoload.php' )   .../index.php:22

2 个答案:

答案 0 :(得分:0)

您似乎忘记了使用Composer安装依赖项。在项目的根目录中(composer.json文件所在的位置)执行

composer install

然后vendor/autoload.php将存在。

答案 1 :(得分:0)

请使用此命令更新您的作曲家或重新安装作曲家。

`composer update`