I have three tables:
When an user buy a plan I add to subscription
I was wondering: how can I get all the users that has a subscription for a plan with a name
vip? I wanted to do something like:
Plan::ofName('vip')->users I don't know if it's possible.