No, there really is no way to get around a leash law--the law means what it says. Or if it's not a law you are referring to, but a provision in your lease or a rule from your HOA, again, the provision or rule means it says, and can be enforced as per its plain language. Laws like these, or contractual provisions, can't be "gotten around" unless they themselves contain some exception or limitation which applies to you or your dog.