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
Requires
- laravel/framework: 5.6.*
This package is not auto-updated.
Last update: 2025-03-02 07:37:51 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, ]);