owner_id === $user->id) { throw new ConflictHttpException('Lobby is already yours', null, 409); } $user->favoriteRooms()->toggle([$room->id]); } }