laravel5.7Class’Predis Client’not found
First, I checked the configuration, and composer is not wrong, with the native redis can also be normal connection and read and write.
My redis is installed with (centos7) yum, and the redis extension of PHP installs PHP extension PhpRedis through PECL.
PECL Installed PHP extension PhpRedis in configuration fileIt will be slightly different.
To use the PhpRedis extension, you need to configure the Redis
client Option is modified to
phpredis，This option is located in the configuration file
'redis' => [ 'client' => 'phpredis', // Rest of Redis configuration... ],
It turned out to be predis.