gilbitron / laravel-vue-pagination

A Vue.js pagination component for Laravel paginators
https://laravel-vue-pagination.org
MIT License
748 stars 144 forks source link

Custom page name doesn't work #185

Closed Qoraiche closed 5 months ago

Qoraiche commented 5 months ago

Describe the bug It keeps using the default ?page, even if i put a custom page name:

$buyers->paginate(3, [*], 'custompagename')

To Reproduce Add a custom page name to ->paginate() builder and try to navigate pagination front, it still adds a ?page to the url instead of ?custompagename

Expected behavior ?custompagename should be used instead

Version information

gilbitron commented 5 months ago

This library is not responsible for how you fetch your data. You would need to update your fetch URL query string to use custompagename instead. See the docs for an example.