user = User::query()->with(['inviter'])->findOrFail($record); } protected function getViewData(): array { return [ 'user' => $this->user, ]; } }