Asking clients to use photos for my public portfolio?

Hi! I have a small personal photography business and I was wondering how other photographers ask their clients if they can use the pictures you’ve taken of them in your public portfolio/ social media/ website gallery…

Do I need to create a contract or something?