abdulrhmanak/laracart
最新稳定版本:0.0.1
Composer 安装命令:
composer require abdulrhmanak/laracart
包简介
cart for e-commerce project in laravel
README 文档
README
Laracart is a cart package designed for Laravel e-commerce projects. This package provides powerful helpers to manage user carts in your e-commerce application.
How to Use:
-
Make sure you have the required migrations for
ProductandUser. -
Install the package using Composer:
composer require abdulrhmanak213/laracart use Abdulrhmanak213\Laracart\Cart;
// Create a new cart instance $cart = new Cart();
// Show the cart for a specific user (by ID or session ID) $cart->show($id);
// Add a new product to the cart $cart->addProduct($product_id, $id, $quantity, $note);
// Remove a product from the cart $cart->removeProduct($product_id, $id);
// Decrease the quantity of a product in the cart $cart->decreaseProduct($product_id, $id);
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-13