File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 40
40
'connections ' => [
41
41
42
42
'main ' => [
43
- 'auth_key ' => 'your-auth-key ' ,
44
- 'secret ' => 'your-secret ' ,
45
- 'app_id ' => 'your-app-id ' ,
46
- 'options ' => [],
43
+ 'auth_key ' => env ('PUSHER_APP_KEY ' ),
44
+ 'secret ' => env ('PUSHER_APP_SECRET ' ),
45
+ 'app_id ' => env ('PUSHER_APP_ID ' ),
46
+ 'options ' => [
47
+ 'cluster ' => env ('PUSHER_APP_CLUSTER ' ),
48
+ ],
47
49
'host ' => null ,
48
50
'port ' => null ,
49
51
'timeout ' => null ,
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ protected function getConfig(array $config): array
63
63
throw new InvalidArgumentException ("Missing configuration key [ $ key]. " );
64
64
}
65
65
}
66
+
67
+ foreach ($ config ['options ' ] as $ option => $ value ) {
68
+ if (is_null ($ value )) {
69
+ unset($ config ['options ' ][$ option ]);
70
+ }
71
+ }
66
72
67
73
return array_only ($ config , $ keys );
68
74
}
You can’t perform that action at this time.
0 commit comments