I have noticed that when I run migrations and seeds on an SQLite database vs a MySQL database, pagination works just fine. Even pulling a fresh version of my code from git and migrating into a fresh MySQL database, pagination doesn't work.
I'm facing the same issue with a manually created paginator. It always returns first page's data.
I've gone through and gotten pagination working fairly trivially simple applications (https://github.com/dydx/laravel-pagination-stuff), and it works with both SQLite and MariaDB/MySQL for that application, but not for the application I started this post about. I can't get pagination to work for that application, even though it is quite literally just a call to App\WorkOrder::paginate(5) and then on my view a call to $work_orders->render().
I see the links, they appear fine. I'm not making a "custom paginator" in any way... it just doesn't work, and I don't understand why.
It has to be something with the URL.
local.dev/page?=3
has proper pagination
local.dev/test/?page=3
does not.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community