public function destroyCart()
    {
        $instance = $this->cart->instance;

        $this->session->forget($this->prefix.'.'.$instance);

        $this->events->dispatch('laracart.destroy', $instance);

        $this->cart = new Cart($instance);

        $this->update();
    }
public function destroyCart()
    {
        $instance = $this->cart->instance;

        $this->session->forget($this->prefix.'.'.$instance);

        $this->events->dispatch('laracart.destroy', $instance);

        $this->cart = new Cart($instance);

        $this->update();
    }
public function destroyCart ( ) { $ instance = $ this -> cart -> instance ; $ this -> session -> forget ( $ this -> prefix . '.' . $ instance ) ; $ this -> events -> dispatch ( 'laracart.destroy' , $ instance ) ; $ this -> cart = new Cart ( $ instance ) ; $ this -> update ( ) ; }
Completely destroys cart and anything associated with it.
Completely destroys cart and anything associated with it .