In my project I want to create a small search engine (+-1000records needs to be searched).
First of all: I know Solr etc are built for what I want, but I think it's a bit overkill?
I have all records in a collection ($results). Now, I want to show the location in the sidebar: ($results->groupBy('Location')->get()). This is how I get my list.
But now, the problem is: how can I also paginate the collection $results without running that query twice?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community