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