public function update()
    {
        $this->session->put($this->prefix.'.'.$this->cart->instance, $this->cart);

        if (config('laracart.cross_devices', false) && $this->authManager->check()) {
            $this->authManager->user()->cart_session_id = $this->session->getId();
            $this->authManager->user()->save();
        }

        $this->session->reflash();

        $this->session->save();

        $this->events->dispatch('laracart.update', $this->cart);
    }
public function update()
    {
        $this->session->put($this->prefix.'.'.$this->cart->instance, $this->cart);

        if (config('laracart.cross_devices', false) && $this->authManager->check()) {
            $this->authManager->user()->cart_session_id = $this->session->getId();
            $this->authManager->user()->save();
        }

        $this->session->reflash();

        $this->session->save();

        $this->events->dispatch('laracart.update', $this->cart);
    }
public function update ( ) { $ this -> session -> put ( $ this -> prefix . '.' . $ this -> cart -> instance , $ this -> cart ) ; if ( config ( 'laracart.cross_devices' , false ) && $ this -> authManager -> check ( ) ) { $ this -> authManager -> user ( ) -> cart_session_id = $ this -> session -> getId ( ) ; $ this -> authManager -> user ( ) -> save ( ) ; } $ this -> session -> reflash ( ) ; $ this -> session -> save ( ) ; $ this -> events -> dispatch ( 'laracart.update' , $ this -> cart ) ; }
Updates cart session.
Updates cart session .