Browse Source

Added support for new redis URL property in config/database.php (#5037)

Regarding laravel/framework#28612
Antoni Siek 5 years ago
parent
commit
bf60f7f74f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      config/database.php

+ 2 - 0
config/database.php

@@ -127,6 +127,7 @@ return [
         ],
 
         'default' => [
+            'url' => env('REDIS_URL'),
             'host' => env('REDIS_HOST', '127.0.0.1'),
             'password' => env('REDIS_PASSWORD', null),
             'port' => env('REDIS_PORT', 6379),
@@ -134,6 +135,7 @@ return [
         ],
 
         'cache' => [
+            'url' => env('REDIS_URL'),
             'host' => env('REDIS_HOST', '127.0.0.1'),
             'password' => env('REDIS_PASSWORD', null),
             'port' => env('REDIS_PORT', 6379),