public function incrementQuantityAt($cartItemIndex, $quantity = 1)
    {
        $this->existenceCheckFor($cartItemIndex);

        $this->items[$cartItemIndex]->quantity += $quantity;

        $this->cartDriver->setCartItemQuantity(
            $this->items[$cartItemIndex]->id,
            $this->items[$cartItemIndex]->quantity
        );

        return $this->cartUpdates();
    }
public function incrementQuantityAt($cartItemIndex, $quantity = 1)
    {
        $this->existenceCheckFor($cartItemIndex);

        $this->items[$cartItemIndex]->quantity += $quantity;

        $this->cartDriver->setCartItemQuantity(
            $this->items[$cartItemIndex]->id,
            $this->items[$cartItemIndex]->quantity
        );

        return $this->cartUpdates();
    }
public function incrementQuantityAt ( $ cartItemIndex , $ quantity = 1 ) { $ this -> existenceCheckFor ( $ cartItemIndex ) ; $ this -> items [ $ cartItemIndex ] -> quantity += $ quantity ; $ this -> cartDriver -> setCartItemQuantity ( $ this -> items [ $ cartItemIndex ] -> id , $ this -> items [ $ cartItemIndex ] -> quantity ) ; return $ this -> cartUpdates ( ) ; }
Increments the quantity of a cart item.

@param int Index of the cart item
@param int quantity to be increased
@return array
Increments the quantity of a cart item .