id === (int) $id; }); Broadcast::channel('chat.{room_id}', function ($user, $room_id) { return Auth::check(); });