src/Eloquent/Repository.php
public function update(array $values)
    {
        $result = $this->getBuilder()->update($values);

        // Reset query builder
        $this->resetBuilder();

        return (int) $result;
    }
public function update(array $values)
    {
        $result = $this->getBuilder()->update($values);

        // Reset query builder
        $this->resetBuilder();

        return (int) $result;
    }
public function update ( array $ values ) { $ result = $ this -> getBuilder ( ) -> update ( $ values ) ; // Reset query builder $ this -> resetBuilder ( ) ; return ( int ) $ result ; }
Execute query as an update statement.

@author Morten Rugaard <moru@nodes.dk>

@param  array $values
@return int
Execute query as an update statement .