Redirect Digging to a Digging Pit
Since you consider your dog’s choice of digging locations to be inappropriate, choose a location to your liking and teach your dog to dig there.
Build your dog a digging pit (much like a child’s sandbox) in a suitable area of the garden. Bury a cow’s ear (or some interesting treats) in your dog’s digging pit. Your little doggie will be utterly delighted when
they find them.
Now, this single simple procedure may not totally prevent holes in other areas of the garden, but your dog will now be much more inclined
to dig in their digging pit. After just one remarkable find, your dog will prefer to excavate in digging pit, where they once found something very worth finding. Every morning, fill several chewtoys with your dog’s breakfast kibble and bury them in the digging pit. Your dog will discover that the digging pit is a virtual treasure trove where they can find toys for sustenance and entertainment.
Once the dog’s digging activities have been redirected to a suitable location in your garden, you might consider protecting other parts of the garden. Lay down chicken wire or chain-link fencing over the lawn and flower beds, add plenty of topsoil, and reseed.