I'm having problems with redis on calling laravel-horizon to see the events and jobs.
I installed php-redis with this command.
sudo apt-get install php-redis
Redis it's working because i can login onto redis-cli
and throw a ping a command. It response is "PONG" .
My php version is 7.4.
I'm using BREW to manage the php versions.
I restarted the PC and restated the apache service. I cleared the laravel cache and config with artisan optimize
After doing all, when i try to call laravel horizon, it says that Class Redis not found
On laravel config database.php
on redis client is using phpredis, but i can't change this option because the are other people on the proyect.
Thanks
From the terminal where you are running the command based on your PHP configurations run php -m
this will show the list of installed PHP extensions. If the list is missing redis then install redis extension by running pecl install redis
. If you have multiple php versions then you could install the extension on linux system by running sudo apt install php8.1-redis
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.