Skip to content

Commit

Permalink
Merge pull request laravel#19 from rossbearman/patch-1
Browse files Browse the repository at this point in the history
Support configuration of database prefix in .env
  • Loading branch information
taylorotwell committed Apr 15, 2015
2 parents 53a6cb7 + 9659368 commit 55a60aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
'sqlite' => [
'driver' => 'sqlite',
'database' => storage_path('database.sqlite'),
'prefix' => '',
'prefix' => env('DB_PREFIX', ''),
],

'mysql' => [
Expand All @@ -65,7 +65,7 @@
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'prefix' => env('DB_PREFIX', ''),
'timezone' => '+00:00',
'strict' => false,
],
Expand All @@ -77,7 +77,7 @@
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'prefix' => env('DB_PREFIX', ''),
'schema' => 'public',
],

Expand All @@ -87,7 +87,7 @@
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'prefix' => '',
'prefix' => env('DB_PREFIX', ''),
],

],
Expand Down

0 comments on commit 55a60aa

Please sign in to comment.