To explain this, I’m gonna try to use an example and maybe it’ll give you a better picture of it hopefully. I’m using pagination on my project and added $variable->appends(get)->links to keep query strings in the next page of pagination. Is there a way to use or mimic this when pressing a form button for submission, which would have action attribute with a url, to add a new view on the url and also append those query strings to it like appends get does on pagination?
assuming you have a GET form, and you want the current query parameters to resubmit with submitting your form, the easiest way is by adding those query params to your form as well:
Realistically and just trying to be honest, by the time you are using the laravel framework you should be already well-versed in basic HTTP techniques such as get and post request and those kinds of basics.
Jeffrey has free introductory PHP courses as well. Even if you can't do the videos he has free code you can study on GitHub.
You could also use javascript for this. In the onsubmit event of the form, grab the current query string from the url with window.location.search, replace the ? with a &, and append it to the end of the submitted form values. Basically just combine the current query string with the one the form generates.