mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
Updated search method on collections so they match with the default collection search method signature
This commit is contained in:
@@ -51,7 +51,7 @@ class CartRowCollection extends Collection {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function search(array $search)
|
public function search($search, $strict = false)
|
||||||
{
|
{
|
||||||
foreach($search as $key => $value)
|
foreach($search as $key => $value)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class CartRowOptionsCollection extends Collection {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function search(Array $search)
|
public function search($search, $strict = false)
|
||||||
{
|
{
|
||||||
foreach($search as $key => $value)
|
foreach($search as $key => $value)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user