In a large heavy-based pan, sweat the onion or leek over a gentle heat for 5 minutes until soft and translucent. Add the garlic and carrot and cook for a further 5 or so minutes. You want this mix to be completely melting, soft and translucent, but in no way scorched.