laravel/laravel — pull request #1315 by juniorgrossi (2012-10-05 22:10:32+00:00)
Title: Improving the way Laravel generates URL for Paginator

If I have a URL like

controller/action?query=search

Laravel will replace everything with

controller/action?page=2

instead of

controller/action?query=search&page=2

The improvements gets the current query string and use it to append to the generated URL. This way will look for present **page** parameter too like:

controller/action?query=search&page=2

the generated URL will be

controller/action?query=search&page=3