moritz99's avatar

Database dashboard with auto refresh and pagination

Hi, I have a project with several tables and want to create a dashboard showing 4 data tables with individual pagination. This dashboard should refresh every 10 seconds automatically without any user interaction and should also increase every page number on those tables. What do you think, would be the best way to implement that functionality?  How to implement auto refresh?  How to increase that page number and at the last page jump back to the first?

thx for help

0 likes
1 reply
vincent15000's avatar

It depends on what you know about PHP, JS, ... and also on what frontend framework you are using (Laravel blade, VueJS , ...).

Assuming you are coding with full Laravel.

You can for example do that easily with Livewire polling by coding only in PHP.

https://laravel-livewire.com/docs/2.x/polling

About multiple pagination on the same page, you can also do that easily.

https://laravel-livewire.com/docs/2.x/pagination#multiple-paginators

https://laravel.com/docs/10.x/pagination#multiple-paginator-instances-per-page

Please or to participate in this conversation.