1DB_CONNECTION=mysql
2DB_HOST=127.0.0.1
3DB_PORT=3306
4DB_DATABASE=database1
5DB_USERNAME=root
6DB_PASSWORD=secret
7
8DB_CONNECTION_SECOND=mysql
9DB_HOST_SECOND=127.0.0.1
10DB_PORT_SECOND=3306
11DB_DATABASE_SECOND=database2
12DB_USERNAME_SECOND=root
13DB_PASSWORD_SECOND=secret
14
1<?php namespace App; use Illuminate\Database\Eloquent\Model; class Blog extends Model{}