Force default timezone to UTC; move helpers.php

This commit is contained in:
Nabeel Shahzad
2017-12-10 08:47:03 -06:00
parent f2add8908b
commit 3c41089a8a
5 changed files with 10 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ return [
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'timezone' => '+00:00',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
@@ -22,21 +23,25 @@ return [
'sqlite' => [
'driver' => 'sqlite',
'database' => env('DB_DATABASE', storage_path('db.sqlite')),
'timezone' => '+00:00',
'prefix' => '',
],
'local' => [
'driver' => 'sqlite',
'database' => storage_path('local.sqlite'),
'timezone' => '+00:00',
'prefix' => '',
],
'unittest' => [
'driver' => 'sqlite',
'database' => storage_path('unittest.sqlite'),
'timezone' => '+00:00',
'prefix' => '',
],
'memory' => [
'driver' => 'sqlite',
'database' => ':memory:',
'timezone' => '+00:00',
'prefix' => '',
],
],