How to transfer music from friends iPhone to my laptop

You could use another app (such as iMazing 2, AnyTrans, TunesGo... you can find a nice comparative here) to get files from your friend´s phone into your computer. And then, you just have to add them manually to iTunes.