To treat someone (to a meal, drink, etc.); to pay for someone else's expenses as a treat.
今日は私が夕食代をおごるよ。
I'll treat (pay) for dinner tonight.
先輩が新人の歓迎会で全員の飲み代をおごった。
The senior treated everyone to drinks at the welcome party for the new employees.
友達の誕生日だからケーキをおごった。
Because it was my friend's birthday, I bought the cake for them.
彼女に京都でおごってもらった。
She treated me in Kyoto.
To be extravagant; to live or spend lavishly; to indulge oneself.
給料が入ったときだけ少し奢ることにしている。
I allow myself to splurge only when I get paid.
彼は趣味にお金をかけて少し贅沢に奢っている。
He spends a lot on his hobby and indulges himself a bit.
そんなに奢る必要はないよ。
You don't need to be so extravagant.