public function update(array $values) { $sql = $this->grammar->compileUpdate($this, $values); return $this->connection->update($sql, $this->cleanBindings($this->grammar->prepareBindingsForUpdate($this->bindings, $values))); }
/** * Restore the soft-deleted model instances. * * @return int */ public function restore() { if ($this->model->isSoftDeleting()) { $column = $this->model->getDeletedAtColumn(); return $this->query->update(array($column => null)); } }