user->email = $dto->email; $this->user->name = $dto->name; $this->user->city = $dto->city; $this->user->mobile_number = $dto->mobileNumber; // We already have casts to auto hash passwords. $this->user->password = $dto->password; $this->user->save(); return $this->user; } }