Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DB_CONNECTION=mysql
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=br_bancodd
- DB_USERNAME=root
- DB_PASSWORD=
- 'br' => [
- 'driver' => 'mysql',
- 'host' => env('DB_HOST', 'localhost'),
- 'port' => env('DB_PORT', '3306'),
- 'database' => env('DB_DATABASE', 'br_bancodd'),
- 'username' => env('DB_USERNAME', 'root'),
- 'password' => env('DB_PASSWORD', ''),
- 'charset' => 'utf8',
- 'collation' => 'utf8_unicode_ci',
- 'prefix' => '',
- 'strict' => false,
- 'engine' => null,
- ],
- 'us' => [
- 'driver' => 'mysql',
- 'host' => env('DB_HOST', 'localhost'),
- 'port' => env('DB_PORT', '3306'),
- 'database' => env('DB_DATABASE', 'us_bancodd'),
- 'username' => env('DB_USERNAME', 'root'),
- 'password' => env('DB_PASSWORD', ''),
- 'charset' => 'utf8',
- 'collation' => 'utf8_unicode_ci',
- 'prefix' => '',
- 'strict' => false,
- 'engine' => null,
- ],
- ...
- $tabUser = DB::connection('us')->table('usertable')->get();
- return $tabUser;
- $tabUser = DB::table('usertable')->get();
Add Comment
Please, Sign In to add comment