From 2999342c1a0f4b0efb1bffd988c5f166f62a3fd3 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 16 Nov 2022 23:24:37 +0100 Subject: [PATCH] fix memberView --- app/Http/Views/MemberView.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Views/MemberView.php b/app/Http/Views/MemberView.php index 052a0381..dba38ada 100644 --- a/app/Http/Views/MemberView.php +++ b/app/Http/Views/MemberView.php @@ -21,8 +21,8 @@ class MemberView return [ 'data' => MemberResource::collection(Member::select('*') ->filter($filter)->search($request->query('search', null)) - ->with('billKind')->with('payments')->with('memberships')->with('courses') - ->withSubscriptionName()->withIsConfirmed()->withPendingPayment()->withAgeGroup()->withIsLeader() + ->with('billKind')->with('payments')->with('memberships')->with('courses')->with('leaderMemberships')->with('ageGroupMemberships') + ->withSubscriptionName()->withIsConfirmed()->withPendingPayment() ->orderByRaw('lastname, firstname') ->paginate(15) ),