whereKey($recordingId) ->where('user_id', $user->id) ->exists(); }); Broadcast::channel('user.{userId}.recordings', function (User $user, int $userId): bool { return (int) $user->id === $userId; });