Persisting query parameter across links on a given website
Hi everybody,
I'm trying to find the best solution for the following task - let's say a user accesses my website using a token in the url, something along the lines of http://www.example.com/?token=12345. What I would like to do next is to persist that token query parameter on any links from the website that the user might visit. The entry point can be any link available on the website.
Tried your approach, @michaloravec, but this piece of code $parameters + request()->query() throws an "Unsupported operand types" exception. It looks like $parameters isn't an array.