Demers94
2280
4
Laravel

Add parameters to current URL

Posted 3 years ago by Demers94

Hello,

I have a URL like this :

/mods?game=1&category=3

I would like that, when I click on a link, it adds the parameter to the current URL without removing the existing parameters. The end result would be something like that :

/mods?game=1&category=3&page=6

In non-Laravel projects, I use http_build_query to achieve that, but I was thinking that there must be a cleaner way to do that in Laravel 5.

Please sign in or create an account to participate in this conversation.