Support the ongoing development of Laravel.io →
Requests Eloquent Queues

Laravel 5.3 I have search results, need to do results per page. URL is dynamic. Depends on search request So we can not use something like this:

<a href="/products/500">500</a>
<a href="/products/100">100</a>
// i need like this
<a href="http://lara53/products/search/500?searcher=6">500 results per page</a> 
<a href="http://lara53/products/search/100?searcher=6">100 results per page</a> 
//change part of url ( 5 ) to what i need ( 100 )

So, get current URL, and change just part of it without any new controller.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.