diff --git a/src/Horizon.php b/src/Horizon.php index 7f5eb0e6..84f0f5d3 100644 --- a/src/Horizon.php +++ b/src/Horizon.php @@ -103,9 +103,9 @@ public static function use($connection) throw new Exception("Redis connection [{$connection}] has not been configured."); } - config(['database.redis.horizon' => array_merge($config, [ - 'options' => ['prefix' => config('horizon.prefix') ?: 'horizon:'], - ])]); + $config['options']['prefix'] = config('horizon.prefix') ?: 'horizon:'; + + config(['database.redis.horizon' => $config]); } /**