/** * Save the cart state. */ public function save() { $data = serialize($this->toArray()); $this->store->put($this->id, $data); }
/** * Store content using Storage */ public function save() { $this->store->put($this->id, $this->val()); }