fix memberView
This commit is contained in:
parent
0fb9cce5ef
commit
2999342c1a
|
@ -21,8 +21,8 @@ class MemberView
|
||||||
return [
|
return [
|
||||||
'data' => MemberResource::collection(Member::select('*')
|
'data' => MemberResource::collection(Member::select('*')
|
||||||
->filter($filter)->search($request->query('search', null))
|
->filter($filter)->search($request->query('search', null))
|
||||||
->with('billKind')->with('payments')->with('memberships')->with('courses')
|
->with('billKind')->with('payments')->with('memberships')->with('courses')->with('leaderMemberships')->with('ageGroupMemberships')
|
||||||
->withSubscriptionName()->withIsConfirmed()->withPendingPayment()->withAgeGroup()->withIsLeader()
|
->withSubscriptionName()->withIsConfirmed()->withPendingPayment()
|
||||||
->orderByRaw('lastname, firstname')
|
->orderByRaw('lastname, firstname')
|
||||||
->paginate(15)
|
->paginate(15)
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue