mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
Use Carbon instead of date
This commit is contained in:
@@ -633,8 +633,8 @@ class Cart
|
|||||||
'identifier' => $identifier,
|
'identifier' => $identifier,
|
||||||
'instance' => $this->currentInstance(),
|
'instance' => $this->currentInstance(),
|
||||||
'content' => serialize($content),
|
'content' => serialize($content),
|
||||||
'created_at' => $this->createdAt ?: date('Y-m-d H:i:s'),
|
'created_at' => $this->createdAt ?: Carbon::now(),
|
||||||
'updated_at' => date('Y-m-d H:i:s'),
|
'updated_at' => Carbon::now(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->events->dispatch('cart.stored');
|
$this->events->dispatch('cart.stored');
|
||||||
|
|||||||
Reference in New Issue
Block a user