public function hydrate($data) { parent::hydrate($data); if (!empty($this->user)) { $this->user = AuthUserResponse::make($this->user); } }
public function hydrate($data) { parent::hydrate($data); if (!empty($this->user)) { $this->user = AuthUserResponse::make($this->user); } if (!empty($this->emailNode)) { $this->emailData = EmailResponse::make($this->emailData); } if (!empty($this->phone)) { $this->phone = PhoneResponse::make($this->phone); } }