Laughingly has 2 different meanings across 1 category:
Adverb
with laughter; while laughing
"he told the story laughingly"
With laughter or merriment.
The word comes from Middle English, where it was formed by adding the suffix "-ly" to the word "laughing." Its original meaning was simply "in a laughing manner."