/**
  * Update existing item from table
  *
  * @param array              $pairs column value pairs of data
  * @param callable|array|int $terms column value pairs of term data you wanna update to
  * @return int|false
  */
 public function update(array $pairs, $terms = null)
 {
     if (!$this->table) {
         return false;
     }
     $this->authorize('update', $pairs);
     $query = $this->db->update(array_filter($pairs))->table($this->table);
     $this->normalizeTerms($query, $terms);
     return $query->execute();
 }