Browse Source

Merge pull request #3537 from rkgrep/patch-2

Redis connection setup in .env
Taylor Otwell 9 years ago
parent
commit
892ab27f8d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      config/database.php

+ 3 - 3
config/database.php

@@ -116,9 +116,9 @@ return [
         'cluster' => false,
 
         'default' => [
-            'host'     => '127.0.0.1',
-            'port'     => 6379,
-            'database' => 0,
+            'host'     => env('REDIS_HOST', '127.0.0.1'),
+            'port'     => env('REDIS_PORT', 6379),
+            'database' => env('REDIS_DB', 0),
         ],
 
     ],