I am currently trying to clone an existing project of mine from github. After clone I run composer install
during the process I receive the following error:
Uncaught ReflectionException: Class log does not exist
I am running Laravel 5.2 on Centos 7.
我看到过以下提到:
- Removing spaces within the
.env
file. - 删除供应商目录&;重新安装
- Removing certain packages required in composer.json
I have:
- Replaced my
.env
with theexample.env
to avoid any custom config errors. - 我已删除&;重新克隆了回购协议.
- I have used the default
composer.json
shipped with Laravel to see if that makes a difference.
以上这些都没有给我带来任何快乐.我还在另一台机器上设置了相同的环境,应用程序运行良好.这里唯一的区别是机器(工作)不是从git克隆的——它是最初的构建环境.
The stack trace I am receiving:
PHP Fatal error: Uncaught ReflectionException: Class log does not exist in /var/www/html/Acme/vendor/laravel/framework/src/Illuminate/Container/Container.php:736
Stack trace:
#0 /var/www/html/Acme/vendor/laravel/framework/src/Illuminate/Container/Container.php(736): ReflectionClass->__construct('log')
#1 /var/www/html/Acme/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build('log', Array)
#2 /var/www/html/Acme/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('log', Array)
#3 /var/www/html/Acme/vendor/laravel/framework/src/Illuminate/Container/Container.php(845): Illuminate\Foundation\Application->make('log')
#4 /var/www/html/Acme/vendor/laravel/framework/src/Illuminate/Container/Container.php(800): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /var/www/html/Acme/vendor/laravel/framework/src/Illuminate/Container/Container.php(769): Illuminate\Container\Container->getDependenc in /var/www/html/Acme/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 736
任何帮助都将不胜感激.提前谢谢您.