1, the necessary expansion
composer require predis/predis
composer require illuminate/redis
2, support the introduction of redis
app.php added bootstrap /
$app->register(\Illuminate\Redis\RedisServiceProvider::class);
3 Start redis Helper
And laravel make little difference bootstrap / app.php in the 'Facades' and 'Eloquent' of
$ App-> withFacades () and $ app-> withEloquent () opens like a comment
4, .env configuration file
= 192.168.1.41 REDIS_HOST
REDIS_PORT = 7000
REDIS_PASSWORD = 123456
or extended configuration file vendor \ laravel \ lumen-framework \ config \ database.php