She's certainly come a long way!

Demi Lovato shared a before-and-after pic to document her recovery from an eating disorder on Instagram today, and although the singer has made great strides in her battle with bulimia, she admitted in her new documentary Simply Complicated that she's had her slip ups with the disease.

"When I was in a relationship with Wilmer I went three years without purging and when we broke up that’s one of the first things I did. The less I have to think about food, the easier it is to go about having a normal life and I don’t want to let anybody down so when I do have moments when I slip up, I feel very ashamed. What started the relapse was missing Wilmer. And when I feel lonely my heart feels hungry and I end up binging,” she told her manager Phil McIntyre in one scene.

"Food is still the biggest challenge in my life and it controls — I don’t want to give it the power to say it controls my every thought, but it’s something that I’m constantly thinking about. Body image, what I’m going to eat next, what I wish I could be eating, what I wish I didn’t eat. It’s just constant. Like I get envious toward people that don’t struggle with an eating disorder just because I feel like my life would be so much easier," she confessed.

The songstress' longtime pal Selena Gomez couldn't be prouder of her for sharing her story, and she took to social media to congratulate her on her doc.

"You always continue to [be] bold and real. I wish more people were like you. Love you," Gomez wrote. "Thank you so much, this means the world to me and more. Love you too," Lovato responded.

She certainly has become a role model!