| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function __invoke(Request $request) |
||
| 23 | { |
||
| 24 | $app = App::findById($request->header('X-App-Id')); |
||
|
|
|||
| 25 | |||
| 26 | $broadcaster = $this->getPusherBroadcaster([ |
||
| 27 | 'key' => $app->key, |
||
| 28 | 'secret' => $app->secret, |
||
| 29 | 'id' =>$app->id, |
||
| 30 | ]); |
||
| 31 | |||
| 32 | /* |
||
| 33 | * Since the dashboard itself is already secured by the |
||
| 34 | * Authorize middleware, we can trust all channel |
||
| 35 | * authentication requests in here. |
||
| 36 | */ |
||
| 37 | return $broadcaster->validAuthenticationResponse($request, []); |
||
| 38 | } |
||
| 40 |