Skip to content

Commit 83d05fa

Browse files
Do not override all options provided by connection (#960)
1 parent 79e4684 commit 83d05fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Horizon.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ public static function use($connection)
103103
}
104104

105105
config(['database.redis.horizon' => array_merge($config, [
106-
'options' => ['prefix' => config('horizon.prefix') ?: 'horizon:'],
106+
'options' => array_merge($config['options'] ?? [], [
107+
'prefix' => config('horizon.prefix') ?: 'horizon:',
108+
]),
107109
])]);
108110
}
109111

0 commit comments

Comments
 (0)