How to automatically append query string to laravel pagination links?

后端 未结 9 1996
失恋的感觉
失恋的感觉 2020-12-01 06:06

I am working on search filter on checkbox click, with Laravel and Ajax call. So I get results when I click on a checkbox. my query is as follows:

    $editor         


        
9条回答
  •  不思量自难忘°
    2020-12-01 07:11

    in your view where you display pagination...

    {{ $results->appends(Request::except('page'))->links() }}
    

    appends keeps the query string value except "page". not sure if it will work with POST request

提交回复
热议问题