This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I've built a plugin that uses this Laravel package - https://github.com/corcel/corcel - to include content from a Wordpress site in our site, so clients can manage their blog separately from the main site. To get this to work, you have to set up a second database connection in config.database.php that points to the WP database, and include
protected $connection = 'wordpress';
in the model class definition. However, we would like to use the .env style of configuration, since we're going to be deploying multiple sites and a single place for configuration info would be simpler. The problem is that I can't figure out how to create the second database connection in the .env file; the format seems to allow only for a default database connection. Is there a way to define multiple database connections in the .env file?
1-1 of 1