I want to using Redis in laravel 5.2 however, I'm getting error such a Class 'Predis\Client' not found, How I can solve it.
Go to the folder where you have downloaded the redis and run this command:
cd your-redis-folder-name
make
Go to your project directory and install composer:
composer require predis/predis
Go to your .env file and add Queue driver:
QUEUE_DRIVER=redis
Mail::queue()
to send mail via queue. See Doc.And in your terminal run:
php artisan queue:listen
to send.
Write in console in project folder:
composer require predis/predis
And thats all.
You need to add predis/predis
into composer.json
for your project. Reference: https://laravel.com/docs/5.2/redis#introduction
we have add composer.json file "predis/predis": "~1.0" help working fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With