Overtrue\LaravelShoppingCart\Cart::remove PHP Method

remove() public method

Remove a row from the cart.
public remove ( string $rawId ) : boolean
$rawId string The __raw_id of the item
return boolean
    public function remove($rawId)
    {
        if (!($row = $this->get($rawId))) {
            return true;
        }
        $cart = $this->getCart();
        $this->event->fire('cart.removing', [$row, $cart]);
        $cart->forget($rawId);
        $this->event->fire('cart.removed', [$row, $cart]);
        $this->save($cart);
        return true;
    }