You can attach an Amazon RDS database to a Laravel Vapor deployment, which automatically configures your Laravel app to use that database.
First, create a database on Vapor using the UI or the CLI.
Then, add it to your
vapor.yml file for your app:
# Add the database like this:
# More configuration would go here
Now, next time you redeploy to Laravel Vapor, your app will have the necessary environment variables to connect to the database you specified.
Subscribe to my newsletter!
A weekly round-up of new blog posts and updates to projects I’m working on.