Keep the Garden Safe
I have two dogs who absolutely love to dig. I started to put used coffee grinds in my garden to make it more fertile, and it has kept the dogs out! I don't know if it is the smell they do not like, but they no longer dig at all.
In fact, they no longer go in the garden at all. This gives my plants time to grow, as well as fertile soil so they are healthier.