DEV Community

Cover image for How to set up Laravel with PostgreSQL? πŸ’‘
DECK πŸ‘¨β€πŸ’»
DECK πŸ‘¨β€πŸ’»

Posted on

2 1

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.

Image description

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 DB_HOST, DB_CONNECTION, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD.

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.🌟

Image description

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

Quadratic AI

Quadratic AI – The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo πŸ“Šβœ¨

Top comments (0)

πŸ‘‹ Kindness is contagious

Explore this insightful post in the vibrant DEV Community. Developers from all walks of life are invited to contribute and elevate our shared know-how.

A simple "thank you" could lift spiritsβ€”leave your kudos in the comments!

On DEV, passing on wisdom paves our way and unites us. Enjoyed this piece? A brief note of thanks to the writer goes a long way.

Okay