LukePOLO\LaraCart\Contracts\LaraCartContract::addLine PHP Method

addLine() public method

Creates a CartItem and then adds it to cart.
public addLine ( string | integer $itemID, null $name = null, integer $qty = 1, string $price = '0.00', array $options = [], boolean | true $taxable = true ) : CartItem
$itemID string | integer
$name null
$qty integer
$price string
$options array
$taxable boolean | true
return LukePOLO\LaraCart\CartItem
    public function addLine($itemID, $name = null, $qty = 1, $price = '0.00', $options = [], $taxable = true);