Browse Source

Add env variable to database default connection

Marcelo Canina 9 years ago
parent
commit
5c16c21817
1 changed files with 1 additions and 1 deletions
  1. 1 1
      config/database.php

+ 1 - 1
config/database.php

@@ -26,7 +26,7 @@ return [
     |
     */
 
-    'default' => 'mysql',
+    'default' => env('DB_CONNECTION','mysql'),
 
     /*
     |--------------------------------------------------------------------------