错误1:
错误2:Lumen中配置可以用Redis,实际上你用的时候会报错
Fatal error: Class ‘Illuminate\Redis\RedisServiceProvider’ not found in /home/vagrant/lumen/vendor/laravel/lumen-framework/src/Application on line 219
想要用么?请执行
Class redis not found
On top of everything else mentioned in this post, you also need to register the RedisServiceProvider in boostrap/app.php:
$app->register(\Illuminate\Redis\RedisServiceProvider::class);
错误2:Lumen中配置可以用Redis,实际上你用的时候会报错
Fatal error: Class ‘Illuminate\Redis\RedisServiceProvider’ not found in /home/vagrant/lumen/vendor/laravel/lumen-framework/src/Application on line 219
想要用么?请执行
composer require illuminate/redis