How do I use icloud for photos?

Hi Mom I figured this was a good place to ask this question! How do I continue to upload my pictures to my iCloud but not store my whole iCloud on my phone? we all know when you have babies you take endless amounts of pictures lol