if($app->runningInConsole()) {
$app->loadEnvironmentFrom('console.env');
} else {
if(Illuminate\Http\Request::capture()->segment(1) == 'admin_url' ){
$app->loadEnvironmentFrom('web_admin.env');
} else {
$app->loadEnvironmentFrom('web_client.env');
}
}
DB_HOST=localhost
DB_DATABASE=db
DB_USERNAME=name
DB_PASSWORD=pass
DB_DATABASE2=db2
env('DB_DATABASE', 'forge')
env('DB_DATABASE2', 'forge')
protected $connection = 'mysql2';