Cakes are associated with special occasions and celebrations so if you saw cake in your dream it is generally a positive sign about your life in general and those who were in the dream with you.
If you were sharing cake with someone, maybe you consider this person to be a special someone in your life. Consider who was with you in the dream for greater significance.
It can also be indicative of overindulgence, however if the dream felt positive for you- it can be a sign you have a lot of love in your life, whether you're aware of it or not. This doesn't necessarily need to be be from your workmates, but friends, family or a partner.
If you ate and enjoyed the cake then you may be feeling a great sense of satisfaction and fulfilment in your life at present. The phrase 'piece of cake' comes to mind- it is possible that you are finding life quite easy now because you're in such a good place.
Alternatively, you may feel that in your professional life you deserve a reward or recognition for your hard work. This might take another form, like more money, a promotion or a simple 'thanks' but masqueraded itself as cake in your sleep state.
Another line of thought is that you enjoy short-term indulgences and sacrifice your long-term goals as a result. Do you spend money too quickly rather than squirreling it away? Do you tend to walk away easily from challenges by opting for something you enjoy instead?
If you felt guilty about eating the cake, it's possible that you feel you're doing something in your waking life that doesn't sit right with you.
Or more simply- if you are dieting right now and things like cake are forbidden- maybe you felt guilty for eating it in your dream because you know it's going to sabotage your weight loss goals.
What is taking up a lot of your mental energy right now? The dream could be telling you that it’s time to make a decision. Maybe you’ve been contemplating whatever this is for too long and you need to move on and make it history. On the flipside, perhaps you haven’t deliberated over something as much as you should. If you’ve underestimated this choice, maybe it’s time to take it more seriously. Are you someone who tends to overthink everything that happens in your life? It may be wise to give yourself some space to breathe rather than live in perpetual reflection. Is this tendency to dwell affecting your closest relationships? Some professional help could be just what you need...