public function remove($rawId)
    {
        if (!$row = $this->get($rawId)) {
            return true;
        }

        $cart = $this->getCart();

        $this->event->fire('shopping_cart.removing', [$row, $cart]);

        $cart->forget($rawId);

        $this->event->fire('shopping_cart.removed', [$row, $cart]);

        $this->save($cart);

        return true;
    }
public function remove($rawId)
    {
        if (!$row = $this->get($rawId)) {
            return true;
        }

        $cart = $this->getCart();

        $this->event->fire('shopping_cart.removing', [$row, $cart]);

        $cart->forget($rawId);

        $this->event->fire('shopping_cart.removed', [$row, $cart]);

        $this->save($cart);

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

@param string $rawId The __raw_id of the item

@return bool
Remove a row from the cart .