mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
Updated readme and phpdocs
This commit is contained in:
@@ -166,10 +166,10 @@ Cart::total();
|
|||||||
* Search if the cart has a item
|
* Search if the cart has a item
|
||||||
*
|
*
|
||||||
* @param Array $search An array with the item ID and optional options
|
* @param Array $search An array with the item ID and optional options
|
||||||
* @return boolean
|
* @return Array|boolean
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Cart::search(array('id' => 1, 'options' => array('size' => 'L')));
|
Cart::search(array('id' => 1, 'options' => array('size' => 'L'))); // Returns an array of rowid(s) of found item(s) or false on failure
|
||||||
```
|
```
|
||||||
|
|
||||||
## Collections
|
## Collections
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ class Cart {
|
|||||||
* Search if the cart has a item
|
* Search if the cart has a item
|
||||||
*
|
*
|
||||||
* @param Array $search An array with the item ID and optional options
|
* @param Array $search An array with the item ID and optional options
|
||||||
* @return boolean
|
* @return Array|boolean
|
||||||
*/
|
*/
|
||||||
public function search($search)
|
public function search($search)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user