public function updateAccount(AccountInterface $account, array $data = []) { $this->accounts()->update($account, $data); return $account; }