Preheat the oven to 350F then line a baking sheet and set aside.
Cream the butter, brown sugar, and granulated sugar together until smooth and creamy.
1/2 cup butter, 1/3 cup granulated sugar, 1/3 cup brown sugar
Mix in the shredded carrots, vanilla extract, egg yolk, and heavy cream until smooth.
1/2 cup carrots, 1 tbsp vanilla extract, 1 yolk, 3 tbsp heavy cream
Add in the flour, baking soda, baking powder, cinnamon, allspice, ginger, cloves, and salt and mix just until the flour mixture disappears.
1 & 3/4 cup AP flour, 1/2 tsp baking powder, 1/2 tsp baking soda, 1/2 tsp cinnamon, 1/8 tsp allspice, 1/4 tsp ginger, pinch cloves, 1/4 tsp salt
Scoop out 8 equal cookie dough balls, place them on the prepared baking sheet, gently flatten to about 3/4-1 inch in thickness and bake for 12 minutes.
Let the cookies cool down on the baking sheet for 20 minutes before transferring to a cooling rack.