0

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

enter image description here

Why do I need predis if I am already using phpredis?

RichardMiracles
  • 2,032
  • 12
  • 28
  • 46

1 Answers1

2

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.