Larave Error when upgrading to 5.2 – ‘Class log does not exist’

Laravel项目升级到5.2突然提示以下错误

PHP Fatal error: Uncaught exception ‘ReflectionException’ with message ‘Class log does not exist’ in /Users/freek/dev/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:776
Stack trace:
#0 /Users/freek/dev/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(776): ReflectionClass->__construct(‘log’)
#1 /Users/freek/dev/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(656): Illuminate\Container\Container->build(‘log’, Array)
#2 /Users/freek/dev/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(644): Illuminate\Container\Container->make(‘log’, Array)
#3 /Users/freek/dev/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(887): Illuminate\Foundation\Application->make(‘Psr\\Log\\LoggerI…’)

在网上也找了很多种方法,最终的导致问题的原因是:evn文件中的变量设置出现了空格

比如API_NAME=TEST API 改为API_NAME=TESTAPI 或者 API_NAME=”TEST API”即可

keystore文件找回密码的方法