mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
Little update to readme
This commit is contained in:
17
README.md
17
README.md
@@ -65,23 +65,6 @@ Cart::add(array(
|
||||
));
|
||||
```
|
||||
|
||||
**Cart::addBatch()**
|
||||
|
||||
Don't use this anymore, just pass a multidimensional array to the `Cart::add()` method
|
||||
|
||||
```php
|
||||
/**
|
||||
* Add multiple rows to the cart
|
||||
*
|
||||
* @param Array $items An array of items to add, use array keys corresponding to the 'add' method's parameters
|
||||
*/
|
||||
|
||||
Cart::addBatch(array(
|
||||
array('id' => '293ad', 'name' => 'Product 1', 'qty' => 1, 'price' => 10.00),
|
||||
array('id' => '4832k', 'name' => 'Product 2', 'qty' => 1, 'price' => 10.00, 'options' => array('size' => 'large'))
|
||||
));
|
||||
```
|
||||
|
||||
**Cart::update()**
|
||||
|
||||
```php
|
||||
|
||||
Reference in New Issue
Block a user