Fleas please help

Sa

My dog recently started going under the house and now we have fleas sooo bad inside and outside I just dont know what to do we tried so many things. We only have carpet on our front porch... any suggestions would be lovely