src/Hassansin/DBCart/Models/Cart.php
public function updateItem(array $where, array $values){
        return $this->items()->where($where)->first()->update($values);
    }
public function updateItem(array $where, array $values){
        return $this->items()->where($where)->first()->update($values);
    }
public function updateItem ( array $ where , array $ values ) { return $ this -> items ( ) -> where ( $ where ) -> first ( ) -> update ( $ values ) ; }
update item in a cart

@param  array $attributes
update item in a cart