mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 23:51:25 +00:00
Improved Readme
Manually merged https://github.com/Crinsane/LaravelShoppingcart/pull/311
This commit is contained in:
@@ -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**
|
**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
|
Look at one of the following topics to learn more about LaravelShoppingcart
|
||||||
|
|
||||||
* [Usage](#usage)
|
* [Usage](#usage)
|
||||||
|
|||||||
@@ -580,6 +580,8 @@ class Cart
|
|||||||
'identifier' => $identifier,
|
'identifier' => $identifier,
|
||||||
'instance' => $this->currentInstance(),
|
'instance' => $this->currentInstance(),
|
||||||
'content' => serialize($content),
|
'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');
|
$this->events->fire('cart.stored');
|
||||||
|
|||||||
Reference in New Issue
Block a user