Skip to content

Commit

Permalink
Update env.example to use mysql8 connection and add mysql8-connection…
Browse files Browse the repository at this point in the history
  • Loading branch information
ctcDNightmare committed Oct 21, 2018
1 parent b1070d3 commit cca114f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_CONNECTION=mysql8
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
Expand Down
23 changes: 23 additions & 0 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,29 @@
'sslmode' => 'prefer',
],

'mysql8' => [
'driver' => 'mysql',
'host' => env( 'DB_HOST', '127.0.0.1' ),
'port' => env( 'DB_PORT', '3306' ),
'database' => env( 'DB_DATABASE', 'forge' ),
'username' => env( 'DB_USERNAME', 'forge' ),
'password' => env( 'DB_PASSWORD', '' ),
'unix_socket' => env( 'DB_SOCKET', '' ),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
'modes' => [
'ONLY_FULL_GROUP_BY',
'STRICT_TRANS_TABLES',
'NO_ZERO_IN_DATE',
'NO_ZERO_DATE',
'ERROR_FOR_DIVISION_BY_ZERO',
'NO_ENGINE_SUBSTITUTION',
],
],

],

/*
Expand Down

0 comments on commit cca114f

Please sign in to comment.