rinvex/laravel-subscriptions

Get bookings of the given user with plan price

yogithesymbian opened this issue · 2 comments

// Get bookings of the given user 
$user = \App\Models\User::find(1); 
$bookingsOfSubscriber = app('rinvex.subscriptions.plan_subscription')->ofSubscriber($user)->get(); 

then how to get response with('plan') ? i would to get plan price from subscription. there is have instance access or not ?

ah my bad, i ve refresh on server
just use ->with('model)

Glad you've got it fixed 👍