I am using shift31/laravel-elasticsearch:~1.0. I want to implement pagination on my list page.
Search code :
$params = [
'index' => 'my_index',
'type' => 'product',
'body' => [
'query'=>[
'match'=>[
'category'=>$category
]
]
];
];
$response = \Es::Search($params);
How to use pagination in above query ?
Update :
I used from and size in query but how to give pagination link in view page ? and how to update from by click on page ?
in repository
i set $per_page and $from in controller
and now use render in in the views {{!!$admin_exceptions->render()!!}}