Use Carbon instead of date

This commit is contained in:
Patrick Henninger
2020-05-08 20:42:17 +02:00
parent 4d577b7384
commit a50767d584

View File

@@ -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');