have the laugh on
have the laugh on {v. phr.}
To emerge as the victor.
We were trying to fool Paul by setting him up with a blind date who was reportedly unattractive, but he had the laugh on us when this girl turned out to be beautiful.
Categories:
Source: A Dictionary of American Idioms