Does my post help:
http://novate.co.uk/using-multiple-pagination-links-on-one-page/
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I'm trying to integrate several paginations on Laravel and I encounter a problem. Here is my code:
$selectedCompanies = $selectedCampaign->companies->paginate(1);
$selectedCompanies->setPageName('other_page');
dd($selectedCompanies->currentPage());
If I go to URL/users/ID?other_page=2, I always get 1 on the currentPage. Is this normal ? As a result, I don't have any page change that works at the URL level.
If I haven't been very clear, don't hesitate to let me know :)
Thank you !
Please or to participate in this conversation.