mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 15:41:24 +00:00
Updated readme and phpdocs
This commit is contained in:
13
README.md
13
README.md
@@ -158,6 +158,19 @@ Cart::total();
|
||||
Cart::count(); // Total items
|
||||
Cart::count(false); // Total rows
|
||||
```
|
||||
|
||||
**Cart::search()**
|
||||
|
||||
```php
|
||||
/**
|
||||
* Search if the cart has a item
|
||||
*
|
||||
* @param Array $search An array with the item ID and optional options
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
Cart::search(array('id' => 1, 'options' => array('size' => 'L')));
|
||||
```
|
||||
|
||||
## Collections
|
||||
|
||||
|
||||
Reference in New Issue
Block a user