Skip to content

Commit

Permalink
Add database credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
dasscheman committed Jun 24, 2024
1 parent 441f655 commit abef788
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
'mysql' => [
'driver' => 'mysql',
'url' => env('DATABASE_URL'),
'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', ''),
'host' => getenv('DB_HOST', '127.0.0.1'),
'port' => getenv('DB_PORT', '3306'),
'database' => getenv('DB_DATABASE', 'forge'),
'username' => getenv('DB_USERNAME', 'forge'),
'password' => getenv('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
Expand Down
2 changes: 2 additions & 0 deletions openshift/temp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore

0 comments on commit abef788

Please sign in to comment.