skygdi/shopping-cart

There is no license information available for the latest version (dev-master) of this package.

shopping cart

dev-master 2018-05-24 20:18 UTC

This package is not auto-updated.

Last update: 2024-04-14 02:56:16 UTC


README

Quick Simple base shopping cart model (product id , user_id and qty) for Laravel

1.Install:

composer require skygdi/shopping-cart

2.Public migration files:

php artisan vendor:publish --provider="skygdi\ShoppingCart\ShoppingCartProvider"

3.Migrate

php artisan migrate

4.Usage:

use skygdi\ShoppingCart\model\ShoppingCart;

//create
ShoppingCart::create([
  "product_id"      =>  1,
  "user_id"         =>  1,
  "qty"             =>  5,
]);