DEV Community

Cover image for Setup Redis on Laravel project πŸ’‘
DECK πŸ‘¨β€πŸ’»
DECK πŸ‘¨β€πŸ’»

Posted on

Setup Redis on Laravel project πŸ’‘

DECK has separate stacks for Laravel and Redis. So let's look at how we can set it up quickly.

First, choose a stack for Laravel

You can select either Nginx-PHP or apache-PHP or Laravel stack, add details like project name, PHP version, and select project path.
Hit save, and now you are done with the Laravel project setup. 🌟

Second, choose the Redis stack

Enter a project name and hit save.

Image description

Start the Redis stack and open the Actions & Insights panel and check the Redis Host and Port, now you are ready to add environment variables in your Laravel project .env file, like REDIS_HOST, REDIS_PASSWORD, SESSION_DRIVER.πŸŽ‰

Image description

You can install Redis desktop manager [GUI client] like AnotherRedisDesktopManager to check session data, queues, etc. Just use Host and post from the "Connect using external applications" section.
So the moment of truth πŸ₯³

Image description

We will love to know your feedback about this quick setup 😊. Install DECK today πŸ’œ

Top comments (0)