new MemberResource( $member ->load('memberships') ->load('invoicePositions.invoice') ->load('nationality') ->load('region') ->load('subscription') ->load('courses.course') ), 'meta' => MemberResource::meta(), ]; } public function asController(Member $member): Response { session()->put('menu', 'member'); session()->put('title', 'Mitglied ' . $member->fullname); return Inertia::render('member/ShowView', $this->handle($member)); } }