Level 122
Your filters need to be in a GET request, and you need to append them to the paginator.
There is a paginator function to do this.
You have not shown any code using the paginator so I cannot be more specific
hi
i have a list of products that i show with paginate(20)
its in cache
now i make a filter and i do that like this:
if ($request->subject) {
$products = $products->filter(function ($product) {
return $product->specValues->whereIn('value',['Samsung'])->contains('field_id','1');
})->count();
}
now the filter work only on the first page and show me from the 20 products the products with that values
how i make that to show me from all the pages witour to call all the products again?
Please or to participate in this conversation.