I have a table and is basically built following Caleb’s tutorial: https://laracasts.com/series/guest-spotlight/episodes/3
The point is that when I’m on page 1 and I make a search all is fine.
If I’m on page 2 or higher and make a search AND the results are just one page or less worth of results the search shows “no result” as I’m actually still on page 2. If I manually go back to page 1 I see the search results.
I cannot find a way to reset to page one on every search.
I tried putting on render()
$this->page = 1;
But of course if I go on page 6 it takes me back on page 1 on every render…
Any idea?