Setup Redis on Laravel project ๐Ÿ’ก

Setup Redis on Laravel project ๐Ÿ’ก

Mar 17, 2022ยท

1 min read

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. Screenshot 2022-03-18 at 1.44.40 AM.png

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.๐ŸŽ‰ SCR-20220318-2e8.png

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 ๐Ÿฅณ SCR-20220318-289.png

We will love to know your feedback about this quick setup ๐Ÿ˜Š. Install DECK today ๐Ÿ’œ