Learn this https://laravel-livewire.com/ it takes you one afternoon and makes many complicated things easy, including this.
Jul 29, 2023
7
Level 8
Real time search + pagination
Hello,
I currently use Laravel's pagination and whenever I need a search feature I simply add a search box that, when submitted, saves the value in a session key in the backend and then it refreshes the page with the filtered query.
Now I want to change it to be real time search so that the page won't refresh.
In this case, should I completely stop using the Laravel pagination and do everything with JS? For example for the links and the number of links use a query that counts the results, and a query that fetches the data according to the page.
Or any other idea?
Thanks
Please or to participate in this conversation.