src/Query.php
public function update($column, $value): self
        {
            if (is_object($value)) {
                throw new Exception("Invalid value, can't be an object.");
            }
            $this->updates[] = compact('column', 'value');

            return $this;
        }
public function update($column, $value): self
        {
            if (is_object($value)) {
                throw new Exception("Invalid value, can't be an object.");
            }
            $this->updates[] = compact('column', 'value');

            return $this;
        }
public function update ( $ column , $ value ) : self { if ( is_object ( $ value ) ) { throw new Exception ( "Invalid value, can't be an object." ) ; } $ this -> updates [ ] = compact ( 'column' , 'value' ) ; return $ this ; }
Add a field to update

@param string $column The column name
@param mixed $value The value to update

@return Query
Add a field to update