abdulrhmanak/laracart 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  1. Make sure you have the required migrations for Product and User.

  2. 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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-13