Is Redis running? Do you get a response from the command line?
What shows when you run: redis-server
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Using a simple console command to update some values inside the cache:
Cache::put('latestOrder', 'someData'
, 600);
I receive the following output:
Class "Redis" not found
at vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:81
77▕ * @throws \LogicException
78▕ */
79▕ protected function createClient(array $config)
80▕ {
➜ 81▕ return tap(new Redis, function ($client) use ($config) {
82▕ if ($client instanceof RedisFacade) {
83▕ throw new LogicException(
84▕ extension_loaded('redis')
85▕ ? 'Please remove or rename the Redis facade alias in your "app" configuration file in order to avoid collision with the PHP Redis extension.'
I've checked the app.php but I'm only able to find redis under:
'providers' => [
/*
* Laravel Framework Service Providers...
*/
....
Illuminate\Redis\RedisServiceProvider::class,
phpredis extension is installed and enabled (verified by phpinfo()).
Any idea how to solve this?
Please or to participate in this conversation.