diff --git a/src/Models/CartModel.php b/src/Models/CartModel.php new file mode 100644 index 0000000..ce17e6e --- /dev/null +++ b/src/Models/CartModel.php @@ -0,0 +1,48 @@ + 'array', // Stored as JSON string, cast to array + ]; + + /** + * Get the CartItems for the cart. + */ + public function items() + { + return $this->hasMany(CartItem::class); + } +}