Laugh (something) out of court

To dismiss a legal case as being ridiculous.

They laughed the case out of court when the woman tried to sue the dog’s owner after the dog ate her flowers.