public function updateBy(array $where, array $inputs)
    {
        $inputs = $this->purifyInputs($inputs);

        $query = $this->make();

        $query = $this->applyWhere($query, $where);

        return $query->update($inputs);
    }
public function updateBy(array $where, array $inputs)
    {
        $inputs = $this->purifyInputs($inputs);

        $query = $this->make();

        $query = $this->applyWhere($query, $where);

        return $query->update($inputs);
    }
public function updateBy ( array $ where , array $ inputs ) { $ inputs = $ this -> purifyInputs ( $ inputs ) ; $ query = $ this -> make ( ) ; $ query = $ this -> applyWhere ( $ query , $ where ) ; return $ query -> update ( $ inputs ) ; }
Update all records matching input parameters.

@param array $where
@param array $inputs

@return mixed
Update all records matching input parameters .