The story
Old English had two forms of laugh: hlæhhan and hliehhan. The double H stood for a throaty sound like the ch in German lachen — which is the same word, as is Dutch lachen and Scots lauch. Middle English wrote it laughen or laghen, with gh for that sound.
In most English words, that throaty GH simply disappeared — that is what happened in night, daughter and though. But in a few words it took a different path and turned into F. Laugh is one of them. The two sounds are not as far apart as they look: both are made by pushing air through a narrow gap, one at the back of the mouth and one at the lips.
So the GH in laugh is not quite silent and not quite spelled "right": it is a spelling of the old sound, now pronounced as the sound it became. Which words went silent and which went to F was a matter of dialect, and Standard English inherited a mix — which is why -ough has so many pronunciations.
