You don’t want to share your vegetables with gophers and moles. If they’re a problem in your area, keep them out of your raised bed by adding a layer of hardware cloth before you pour in your planting soil.
Here’s what to do: Rake existing soil at the bottom of the bed to level it, then tamp it smooth. Wearing gloves, line the bed bottom with hardware cloth, making sure that the cloth is lying flat on the bottom and curving up to touch each side of the bed. Secure the cloth by stapling it to the sides of the bed. Use wire cutters to trim excess cloth and to help the cloth fit flush around the corner posts.