How to use Redis for Queue for laravel

Posted by

Step 1: Install redis your server please run this command

sudo apt-add-repository ppa:redis/redis

Step 2: update your apt

sudo apt-get update

Step 3: Now install redis server on ubontu

sudo apt-get install redis-server

Step 4: now check redis cli run or not on this command


Now is not connect redis server

So connect redis serve run this command

sudo service redis-server restart

After that run redis-cli command

Step 5: Go to laravel docs click here

Step 6: instal this package on your laravel project please run this command your terminal

composer require predis/predis

Step 7: Configuration your laravel project so go to config/database.php and predis

Step 8: Change .env database to redis

Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x