tavares's avatar

Pagination - how to work with paginations

Hi, I'm working with a lot of tables and i'm using pagination but when i click to the next pagination i go to another page and i want to stay in the same page but with new data... How can i do that?

MY QUERY: $itemsSizes = ItemsSize::join('items', 'items_sizes.id_item', '=', 'items.id') ->where('items.active', '=', 1) ->orderBy('items_sizes.updated_at', 'asc') ->simplePaginate(5);

MY ROUTE: Route::get('/app/budget/associateItems/{id}', 'BudgetController@getAssociateItems');

MY HTML:

@if($itemsSizes->render()) arrow_back arrow_forward @endif

thank's

0 likes
4 replies
jlrdw's avatar

Confused as to what you want, do you me a new page of data but no page refresh as in ajax?

d3xt3r's avatar

then use ajax to set that up ...

Snapey's avatar

Have a look at datatables js plugin

Please or to participate in this conversation.