I want to connect to another database sometimes.
I created a config.php with the database connection data.
But how can i tell laravel to connect to this data
Edit bootstrap/start.php file and add your machine name (open terminal: hostname).
bootstrap/start.php
hostname
Add your machine to $env,
$env = $app->detectEnvironment(array( 'mymachine' => array('mymachine.local'), ));
'app/config/mymachine'
database.php