public function saveToSession()
    {
        $this->session = Instance::ensure($this->session, Session::className());
        $this->session[$this->cartId] = $this->getSerialized();
    }
public function saveToSession()
    {
        $this->session = Instance::ensure($this->session, Session::className());
        $this->session[$this->cartId] = $this->getSerialized();
    }
public function saveToSession ( ) { $ this -> session = Instance :: ensure ( $ this -> session , Session :: className ( ) ) ; $ this -> session [ $ this -> cartId ] = $ this -> getSerialized ( ) ; }
Saves cart to the session
Saves cart to the session