Skip to content

Commit

Permalink
Update database config relating to Url addition.
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed May 10, 2019
1 parent 4db7419 commit b9d3e0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'connections' => [

'sqlite' => [
'url' => env('DATABASE_URL'),
'driver' => 'sqlite',
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
Expand All @@ -44,6 +45,7 @@

'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'),
Expand All @@ -63,6 +65,7 @@

'pgsql' => [
'driver' => 'pgsql',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'forge'),
Expand All @@ -77,6 +80,7 @@

'sqlsrv' => [
'driver' => 'sqlsrv',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'forge'),
Expand Down

0 comments on commit b9d3e0a

Please sign in to comment.