ctrlc/laravel-basket

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

Shopping basket

dev-main 2021-07-19 19:44 UTC

This package is auto-updated.

Last update: 2024-03-20 01:51:11 UTC


README

#WIP

 Cart::add(CartItemable $cartItemable, $quantity = 1, $meta = [])
 
 Cart::remove(CartItemable $cartItemable, $quantity = 1, $meta = [])
 
 Cart::updateQuantity(CartItemable $cartItemable, $quantity = 10, $meta = [])
 
 $total = Cart::total();
 
 $cartModel = Cart::getCart();
 
 $items = Cart::items();