*/ public function handle(Member $member): Collection { return $member->load('invoicePositions.invoice')->invoicePositions; } public function asController(Member $member): JsonResponse { return response()->json([ 'data' => InvoicePositionResource::collection($this->handle($member)), ]); } }