to succeed when others thought you would not
The company fired her last year but she had the last laugh because she was hired by their main rival at twice the salary. Usage notes: sometimes used with get: She said I'd never make it to college, but I got the last laugh.