You asked

Which leica m camera would take a 50mm f 1 8 for portraits?

The guide doesn't cover Leica M bodies, so it can't say which one to pair with a 50mm f/1.8. The 7Artisans 50mm f/1.8 on this site is made for Sony E, Fujifilm X and Micro Four Thirds mounts, not Leica M, so it isn't a fit for a Leica M body.

For portraits, the guide's view is that a 50mm f/1.8 is one of the best lenses you can buy for people. On a full-frame camera it gives a natural, slightly tight view. On APS-C it behaves like a 75-80mm portrait lens, which flatters faces because you stand a little further away. The portraits page explains that reasoning, along with when an 85mm or a longer lens is the better choice.

The Leica 50mm lenses the site does list are not f/1.8. The Leica Summicron-M 50mm f/2 is the classic small 50mm and is cheaper than the APO version. The site describes the Noctilux-M 50mm f/1 and the Elmar-M 50mm f/2.8 as well, but those are separate lenses at different apertures. If you want a Leica M for portraits, the Summicron is the closest match on this site.

If you want an f/1.8 50mm for a camera the site does cover, the 7Artisans 50mm f/1.8 is a manual-focus option for Sony E, Fujifilm X and Micro Four Thirds. For a general starting point, the lenses guide recommends a fast standard prime for people and low light.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.