How do you leave?

I have been married for only 8 months now but we have been together for 7 years we have a 9 month old. I regret getting married I thought it was the right thing to do after my daughter was born. I am not happy in my marriage sometimes I feel like I'm being ungrateful because I don't work I'm a SAHM my husband is the one who provides for us. I loved my husband so much but too much damage has been done . I have stuck with my husband thru his addiction, homelessness, jail time, and all the shit he put me through because I always knew he could be better. January 2nd 2018 I went to the train tracks where he was living and took him home helped him detox and get his life together I got pregnant that month and the same day we found out he got a amazing job as a welder. I was always the provider for us until he started making enough to support us. Our relationship has gotten physically abusive and we just always seem to fight especially when he throws it in my face that he makes the money I don't do anything. I don't know what to do I want to leave but I have nothing to go to I'm completely alone I don't want to take my daughter away from having everything to nothing. My internal struggle of staying to keep my daughter happy or leaving an unhealthy marriage is what holds me back. I don't know where to start or what to do...