Preheat the oven to 350°F (175°C). Grease an 8-inch cake pan or line it with parchment paper.
In a large bowl, mix almond flour, baking soda, baking powder, cinnamon, nutmeg, and salt.
In another bowl, whisk together eggs, maple syrup, melted coconut oil, and vanilla extract.
Pour the wet mixture into the dry ingredients and stir gently until combined.
Fold in grated carrots, nuts, and raisins if using.
Pour batter into the prepared pan and bake for 30–35 minutes, or until a toothpick comes out clean.
Let the cake cool completely on a wire rack before frosting.
For frosting, beat cream cheese, butter (or coconut oil), powdered sugar, and vanilla until smooth. Spread over cooled cake.
Slice and enjoy!