While delicious and tasty in human food, onions and garlic can be deadly to dogs. Use finely chopped onion sautéed until translucent — or browned for a slightly sweeter flavor — to flavor sauces. Add chopped garlic with dried or fresh herbs and spices later in the process just before adding wet ingredients like tomato sauce.