Support the ongoing development of Laravel.io →
Requests Session Eloquent
Last updated 2 years ago.
0
Solution

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() }}
0

Sign in to participate in this thread!

Eventy

Your banner here too?

FaZeRs fazers Joined 1 Sep 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.