Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jrdavidson's avatar

Datatables and Laravel Pagination

Is there any thoughts as to what advantages/disadvantages there are to when grabbing let's say users from a database and paginating them with Laravel or looping through them in a table and rendering the table as a Datatable with the Datatables jQuery plugin?

0 likes
5 replies
Tjyoung's avatar

I really like datatables. Love the sorting, searching, pagination, filtering... so simple/quick. Found it very flexible and easy to customize the results. I'm leaning towards datatables for anything more then a simple table.

spekkionu's avatar

Even with a datatable I would recommend doing the pagination on the server if a large amount of records exist.

2 likes
Bayan's avatar

Can you suggest me good resources plz, i'm working on my project a huge amount of data and i want to perform pagination on backend and frontend

Please or to participate in this conversation.