彼氏に

to one’s boyfriend

→ 彼氏
phrase Rare #34,165
to one’s boyfriend に marks the boyfriend’s role in the sentence; depending on context, it can also mean “for” or identify who performs an action in a passive sentence.
JA: 彼氏にプレゼントを買いました。
EN: I bought a present for my boyfriend.

彼氏に何を買ってあげたの?

What did you buy your boyfriend?

彼氏に何を買ったの?

What did you buy your boyfriend?

ベスは怠け者の彼氏に、歴史の宿題をやってくれと頼まれました。

Beth was asked by her lazy boyfriend to do his history homework.

今度彼氏に作ろうかな

Maybe I’ll make it for my boyfriend sometime.

— すずめの戸締まり (2022)

ただの男友達っていう立場から彼氏に昇格させてくれるかい?

Will you promote me from just a male friend to your boyfriend?