How to set up Laravel with PostgreSQL? 💡
DECK has separate images for Laravel and PostgreSQL. So let’s look at how we can set it up in just two clicks.
First, choose an image for Laravel
You can select either Nginx-PHP or apache-PHP or Laravel image, add details like project name, PHP version, Select PostgreSQL extensions, and select project path.
Hit save, and now you are done with the Laravel project setup.
Second, choose the PostgreSQL stack.
Enter a project name and add database details. Hit save, and now you are ready to add database environment variables in your Laravel project .env file, like
I got you. Where can you find those environment variables values? 🤔
Start the PostgreSQL stack and open the Actions & Insights panel and check the Postgres stack.🌟
We will love to know your feedback about this quick setup 😊. Install DECK today 💜