Here are some methods you can try:
1. Physical Barriers: Install a physical barrier around the plants, such as a fence or netting, to prevent the dog from reaching them.
2. Taste Deterrents: Spray the plants with a bitter apple or hot pepper spray. These deterrents are harmless to dogs but have an unpleasant taste that discourages them from eating.
3. Motion-Activated Devices: Place a motion-activated sprinkler near the plants. The sudden burst of water can startle the dog and deter them from approaching the area.
4. Training and Reinforcement: Train the dog using positive reinforcement. Reward them with treats or praise when they stay away from the plants. When you catch them trying to eat the plants, immediately say "No" or "Leave it" in a firm voice, then distract them with a toy or game.
5. Alternative Options: Provide the dog with its own designated area for digging and chewing, such as a sandbox or chew toys, to redirect their behavior.
6. Consult a Trainer or Behaviorist: If the behavior persists or if you're unsure how to handle it, consider consulting a professional dog trainer or behaviorist for personalized advice and guidance.
Remember, consistency and patience are key when training your dog to avoid certain behaviors.