*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'user_id' => $this->user_id, 'nama' => $this->nama, 'email' => $this->email, 'telepon' => $this->telepon, 'alamat' => $this->alamat, 'ktp' => $this->ktp, 'kk' => $this->kk, // 'file_ktp' => $this->file_ktp, // 'file_kk' => $this->file_kk, 'desa_kelurahan_id' => $this->desa_kelurahan_id, 'desa_kelurahan' => $this->desaKelurahan ? new DesaKelurahanResource($this->desaKelurahan) : null, 'user' => $this->user ? new UserResource($this->user) : null, ]; } }