title: How to create a new connection at runtime in Laravel 5?
body: <p>I'm trying to develop a kind of "time machine" that will allow the user to "travel" in time the databases of each day and eventually merge them and so on...</p>
  
  <p>I'm building this in Laravel 5.2, in fact I think that at the beginning, this will be a Laravel package. The question is:</p>
  
  <p>How can I create a new connection configuration at runtime? Can I access that array and add a new config and hope that Laravel will connect to it later when I will use it? If yes, how can I push this into the array?</p>
  
  <p>I've googled around for a while but all that I've found was related to the connection switching at runtime.</p>
  
  <p>Thank you all, any help is appreciated!</p>