So I fixed it myself.
Solution:
I got the collection ID from request and stored it in variable.
$filter_collection = $request->filter_collection;
Passed variable to the view
->with('filter_collection', $filter_collection)
And changed my pagination to pass collection ID to next view
{{ $storage_items->appends(['filter_collection' => $filter_collection])->links() }}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community