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.
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
转到您的.env文件并添加队列驱动程序:
QUEUE_DRIVER=redis
Mail::queue()
通过队列发送邮件.见Doc.在你的终点站 run 中:
php artisan queue:listen
to send.