Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
Overtrue
LaravelShoppingCart
Cart
save
Overtrue\LaravelShoppingCart\Cart::save PHP Method
Cart Class Documentation
Mostra file
Open project: overtrue/laravel-shopping-cart
save()
protected
method
Sync the cart to session.
protected
save
(
Collection |
null
$cart
) :
Collection
$cart
Illuminate\Support\Collection |
null
The new cart content
return
Illuminate\Support\Collection
protected function save($cart) { $this->session->put($this->name, $cart); return $cart; }
Cart
__construct
add
addRow
all
associate
clean
count
countRows
destroy
generateRawId
get
getCart
getModel
getName
insertRow
isEmpty
makeRow
name
remove
save
search
total
totalPrice
update
updateAttribute
updateQty
updateRow