Setting up multiple connections in Lumen can be a little confusing if you don't know your way around. It's pretty painless once you see the steps involved.
First, you'll need to configure your conenctions. If you don't already have one you'll need to create a
config directory in your project and add the file
config/database.php. It might look like this:
Once you've added your connection configurations, you can access them by getting the database manager object out of the container and calling
->connection('connection_name'). See below for a full example.