public function removeCoupon($code)
    {
        $this->removeCouponFromItems($code);
        array_forget($this->cart->coupons, $code);
        $this->update();
    }
public function removeCoupon($code)
    {
        $this->removeCouponFromItems($code);
        array_forget($this->cart->coupons, $code);
        $this->update();
    }
public function removeCoupon ( $ code ) { $ this -> removeCouponFromItems ( $ code ) ; array_forget ( $ this -> cart -> coupons , $ code ) ; $ this -> update ( ) ; }
Removes a coupon in the cart.

@param $code
Removes a coupon in the cart .