Skip to content

Commit

Permalink
adjust configuration for 5.8 default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 15, 2019
1 parent 51cbabf commit f1f830e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Horizon.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ public static function auth(Closure $callback)
*/
public static function use($connection)
{
if (is_null($config = config("database.redis.{$connection}"))) {
if (! is_null($config = config("database.redis.clusters.{$connection}.0"))) {
config(["database.redis.{$connection}" => $config]);
} elseif (is_null($config) && is_null($config = config("database.redis.{$connection}"))) {
throw new Exception("Redis connection [{$connection}] has not been configured.");
}

Expand Down

0 comments on commit f1f830e

Please sign in to comment.