Preheat the oven to 350°F (175°C) and lightly grease the baking dish.
Grate the carrots, then squeeze out excess moisture using a clean towel.
In a blender or bowl, mix cottage cheese, eggs, maple syrup, and vanilla until smooth.
In a separate bowl, combine almond flour, cinnamon, ginger, nutmeg, and baking powder.
Add the wet mixture to the dry ingredients and stir gently until combined.
Fold in grated carrots, nuts, and raisins if using.
Spread the batter evenly into the prepared baking dish.
Bake for 40–45 minutes, until the center is set and the top is lightly golden.
Let cool slightly before slicing.