diff --git a/src/Protocols/Pusher/Channels/Concerns/InteractsWithPresenceChannels.php b/src/Protocols/Pusher/Channels/Concerns/InteractsWithPresenceChannels.php index 03fd4b5e..c9cb8928 100644 --- a/src/Protocols/Pusher/Channels/Concerns/InteractsWithPresenceChannels.php +++ b/src/Protocols/Pusher/Channels/Concerns/InteractsWithPresenceChannels.php @@ -73,7 +73,7 @@ public function data(): array return [ 'presence' => [ 'count' => $connections->count() ?? 0, - 'ids' => $connections->map(fn ($connection) => $connection['user_id'])->all(), + 'ids' => $connections->map(fn ($connection) => $connection['user_id'])->values()->all(), 'hash' => $connections->keyBy('user_id')->map->user_info->toArray(), ], ];