*/ public function handle(Member $member): Collection { return $member->memberships; } public function asController(Member $member): AnonymousResourceCollection { return MembershipResource::collection($this->handle($member)) ->additional([ 'meta' => MembershipResource::memberMeta($member) ]); } }