Comments (1)
use Overtrue\LaravelShoppingCart\Cart;
// just update name
ShoppingCart::name('newName');
// If you want create different instance:
$cart1 = new Cart(app('session'), app('events'))->name('cart1');
$cart2 = new Cart(app('session'), app('events'))->name('cart2');
// ...
from laravel-shopping-cart.
Related Issues (14)
- composer 组件开发 HOT 1
- support 5.7? HOT 6
- ShoppingCart::all(); return null HOT 7
- About Specifies the associated model HOT 4
- 类中的fire方法替换dispatch方法
- Update does not work during adding of the same item if quantity is different HOT 2
- composer install error HOT 2
- 文档中使用静态方法调用有误吧 HOT 4
- Eager loading associate model
- Creates duplicate item in the cart list
- Undefined type HOT 1
- 关于监听事件传入参数为空的BUG探讨 HOT 1
- Store in database and edit the order
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-shopping-cart.