You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying a Laravel 11 application on (render.com), I encountered an issue with the database connection. The DATABASE_URL environment variable, which was previously used in earlier Laravel versions, has been replaced with DB_URL in Laravel 11.
To resolve this, update your (render.com) environment variables to use DB_URL instead of DATABASE_URL. This change will allow your Laravel 11 application to connect to the database successfully.
### Description:
When deploying a Laravel 11 application on (render.com), I encountered an issue with the database connection. The DATABASE_URL environment variable, which was previously used in earlier Laravel versions, has been replaced with DB_URL in Laravel 11.
To resolve this, update your (render.com) environment variables to use DB_URL instead of DATABASE_URL. This change will allow your Laravel 11 application to connect to the database successfully.
### Steps to reproduce:
### Expected behavior:
The application should connect to the database using the DB_URL environment variable.
### Actual behavior:
The application fails to connect to the database, throwing a Connection refused error.
### Solution:
Update the environment variable to DB_URL and redeploy your application.
The text was updated successfully, but these errors were encountered: