*/ public function handle(Member $member): Collection { return $member->payments()->with('subscription')->get(); } public function asController(Member $member): AnonymousResourceCollection { return PaymentResource::collection($this->handle($member)) ->additional([ 'meta' => PaymentResource::memberMeta($member), ]); } }