How to connect laravel nginx droplet (Digital Ocean) to remote managed postgres database.
You can see the connection parameters of the managed database in the digital ocean admin panel.
so you copy those params over to the laravel .env file like so :
DB_CONNECTION=pgsql
DB_HOST=karigaridb-do-user-1.b.db.ondigitalocean.com
DB_PORT=25060
DB...
mrtechmaker.hashnode.dev2 min read