Exemplo n.º 1
0
 /**
  * Update the cart
  *
  * @param  Subbly\Shoppingcart\CartCollection  $cart  The new cart content
  * @return void
  */
 protected function updateCart($cart)
 {
     return $this->session->put($this->getInstance(), $cart);
 }
Exemplo n.º 2
0
 /**
  * This method saves the data
  *
  * @param array $data
  */
 public function saveData($data)
 {
     $this->data = array_merge($this->data, $data);
     $this->session->put('checkout', $this->data);
 }