Get bookings of the given user with plan price
yogithesymbian opened this issue · 2 comments
yogithesymbian commented
// 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 ?
yogithesymbian commented
ah my bad, i ve refresh on server
just use ->with('model)
Omranic commented
Glad you've got it fixed 👍