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