What do you mean by "dynamic pagination"? AJAX based pagination or what?
Jun 16, 2022
6
Level 7
Dynamic Pagination
Hey there!
I wonder, how would you go about making the pagintion data dynamic, based on some parameters?
So I have a layout that has a filtering menu and pagination, the only thing that's different is the content in between.
So my question is, how do you make this dynamic:
{{ $houses->links() }}
{{ $flats->links() }}
The variable would need to be dynamic.
In my filtering menu I did something like this: {{Request::getPathInfo()}}?pageName={{$url }}"> which sees to work so far for all pages.
Level 122
use the same variable name in both cases , eg $model->links
Please or to participate in this conversation.