public function store($id)
    {
        $this->repo->createOrUpdate(
            $id,
            $this->instanceName,
            json_encode(serialize([
                'content' => $this->content,
                'coupons' => $this->coupons,
            ]))
        );

        return $this;
    }
public function store($id)
    {
        $this->repo->createOrUpdate(
            $id,
            $this->instanceName,
            json_encode(serialize([
                'content' => $this->content,
                'coupons' => $this->coupons,
            ]))
        );

        return $this;
    }
public function store ( $ id ) { $ this -> repo -> createOrUpdate ( $ id , $ this -> instanceName , json_encode ( serialize ( [ 'content' => $ this -> content , 'coupons' => $ this -> coupons , ] ) ) ) ; return $ this ; }
Store the current instance of the cart.

@param $id

@return $this
Store the current instance of the cart .