示例#1
0
 /**
  * Update a record in the database.
  *
  * @param array $values Values to update
  *
  * @return int
  */
 public function update(array $values)
 {
     $bindings = array_values(array_merge($values, $this->bindings));
     $sql = $this->grammar->compileUpdate($this, $values);
     return $this->connection->update($sql, $this->cleanBindings($bindings));
 }