Issue
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.
Solution
- First download the REDIS to your system (if you haven't already installed 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
- use
Mail::queue()
to send mail via queue. See Doc. And in your terminal run:
php artisan queue:listen
to send.
Answered By - Abhishek
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.