id === (int) $id; }); Broadcast::channel('touchedItem', function ($user) { return true; /* return $user->id === Item::findOrNew($itemId)->users->find($user->id)->id; */ });