diff --git a/README.md b/README.md index d1819ed..733d03b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Now you're ready to start using the shoppingcart in your application. **As of version 2 of this package it's possibly to use dependency injection to inject an instance of the Cart class into your controller or other class** -## Overview +## Table of Contents Look at one of the following topics to learn more about LaravelShoppingcart * [Usage](#usage) diff --git a/src/Cart.php b/src/Cart.php index 7e7e6b3..dc5df93 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -580,6 +580,8 @@ class Cart 'identifier' => $identifier, 'instance' => $this->currentInstance(), 'content' => serialize($content), + 'created_at' => date('Y-m-d H:i:s'), + 'updated_at' => date('Y-m-d H:i:s') ]); $this->events->fire('cart.stored');