Reputation: 2152
I have read the docs.
I have changed the database.php file, once this is done I have deleted the predis package from my vendor.
composer remove predis/predis
But when I do a composer update or any artisan command I get this error:
In PredisConnector.php line 25:
Class 'Predis\Client' not found
Why do I need predis if I am already using phpredis?
Upvotes: 0
Views: 994
Reputation: 21
You're almost there. The "Class 'Redis' not found" error in PhpRedisConnector.php is likely because the redis extension is not enabled in your php.ini file. Keep in mind that sometimes CLI uses a different ini file than FPM. Run php --ini
to see which ini file the CLI is using and update it to enable Redis extension.
Upvotes: 2