2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
2017-06-25 01:59:07 +08:00
|
|
|
'fetch' => PDO::FETCH_ASSOC,
|
2017-06-22 03:15:11 +08:00
|
|
|
'default' => env('DB_CONNECTION', 'local'),
|
2017-06-09 02:28:26 +08:00
|
|
|
|
|
|
|
'connections' => [
|
|
|
|
|
2017-06-09 11:53:04 +08:00
|
|
|
'mysql' => [
|
2017-06-09 02:28:26 +08:00
|
|
|
'driver' => 'mysql',
|
|
|
|
'host' => env('DB_HOST', 'localhost'),
|
|
|
|
'port' => env('DB_PORT', '3306'),
|
2017-06-09 02:54:12 +08:00
|
|
|
'database' => env('DB_DATABASE', 'phpvms'),
|
|
|
|
'username' => env('DB_USERNAME', 'phpvms'),
|
|
|
|
'password' => env('DB_PASSWORD', 'phpvms'),
|
2017-06-09 02:28:26 +08:00
|
|
|
'charset' => 'utf8',
|
|
|
|
'collation' => 'utf8_unicode_ci',
|
|
|
|
'prefix' => '',
|
|
|
|
'strict' => true,
|
|
|
|
'engine' => null,
|
2017-06-09 11:53:04 +08:00
|
|
|
],
|
2017-06-09 02:28:26 +08:00
|
|
|
|
2017-06-10 11:19:17 +08:00
|
|
|
'local' => [
|
|
|
|
'driver' => 'sqlite',
|
|
|
|
'database' => database_path('testing.sqlite'),
|
|
|
|
'prefix' => '',
|
|
|
|
],
|
|
|
|
|
|
|
|
'unittest' => [
|
|
|
|
'driver' => 'sqlite',
|
|
|
|
'database' => database_path('unittest.sqlite'),
|
|
|
|
'prefix' => '',
|
|
|
|
],
|
|
|
|
|
|
|
|
'testing' => [
|
|
|
|
'driver' => 'sqlite',
|
|
|
|
'database' => ':memory:',
|
|
|
|
'prefix' => '',
|
|
|
|
],
|
|
|
|
|
2017-06-09 02:28:26 +08:00
|
|
|
],
|
|
|
|
|
|
|
|
'migrations' => 'migrations',
|
|
|
|
|
|
|
|
'redis' => [
|
|
|
|
'cluster' => false,
|
|
|
|
'default' => [
|
|
|
|
'host' => env('REDIS_HOST', 'localhost'),
|
|
|
|
'password' => env('REDIS_PASSWORD', null),
|
|
|
|
'port' => env('REDIS_PORT', 6379),
|
|
|
|
'database' => 0,
|
|
|
|
],
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|