Overtrue\LaravelShoppingCart\Cart::updateQty PHP 메소드

updateQty() 보호된 메소드

Update the quantity of a row.
protected updateQty ( string $rawId, integer $qty ) : Item | boolean
$rawId string The ID of the row
$qty integer The qty to add
리턴 Item | boolean
    protected function updateQty($rawId, $qty)
    {
        if ($qty <= 0) {
            return $this->remove($rawId);
        }
        return $this->updateRow($rawId, ['qty' => $qty]);
    }