Laravel 5.2致命错误:66行上的vendor/composer/autoload_real.php

问题描述:

我已将laravel项目从 local 上传到 host .现在我有以下错误:

I have uploaded my laravel project from local to host. Now I have following error:

Fatal error: require(): Failed opening required '/home/httpd/vhosts/mort.com/httpdocs/cucc/testLaravel/vendor/composer/../../app/Libraries/helpers.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/httpd/vhosts/mort.com/httpdocs/cucc/testLaravel/vendor/composer/autoload_real.php on line 66`

我不明白问题是什么.laravel框架位于名为 testLaravel 的目录中,公共内容位于名为 laravel 的目录中.

I cannot understand what the problem is. The laravel framework is in the directory called testLaravel and the public content in a directory called laravel.

此错误表示缺少某些软件包,因为我看到您没有运行 composer install ,这意味着所需的软件包没有已安装.

This error means some packages are missing, as I see you didn't run composer install, this means the required packages are not installed.

要解决此问题,只需转到项目的根目录并在命令行上运行:

To solve it just go to the root of your project and run on the command line:

composer install