Smash and peel cloves of garlic. Transfer to a medium pot, add olive oil, and heat over medium-low until bubbles form around garlic, 3 minutes. Let cook 10 minutes, reducing heat to low if garlic begins to brown. Remove from heat and let cool to room temperature, 45 minutes.
Alternative for cooked garlic. use an cast iron skillet and use the garlic cloves with just the wrappers and cooked on medium for fifteen minutes turning occasionally. Mince after they have cooled and the papers removed.