Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function boot() |
||
11 | { |
||
12 | $this->app->when(PusherBeams::class) |
||
13 | ->needs(PushNotifications::class) |
||
14 | ->give(function () { |
||
15 | $pusherConfig = config('broadcasting.connections.pusher'); |
||
16 | |||
17 | return new PushNotifications([ |
||
18 | 'secretKey' => array_get($pusherConfig, 'beams.secret_key'), |
||
19 | 'instanceId' => array_get($pusherConfig, 'beams.instance_id'), |
||
20 | ]); |
||
21 | }); |
||
22 | } |
||
23 | } |
||
24 |