I have a URL like http://localhost:8000/assessment/3/199
Where 3 represents assignment id and 199 represents assessor id, in short they both represents two models.
I'm sending such URL into email. I want to first encrypt the URL and then send it to the email.
I want URL like http://localhost:8000/assessment/{some-long-random-string}
So, I want to merge both the parameters, make an encrypted string, send into email, upon accessing the URL decrypt it and get both actual parameters.
I would like a solution which uses Laravel to implement that. May be using these:
The way I would tackle this, is by manually implementing it in a controller. Generate the URL like this:
Create a route like:
In the controller:
Of course, you will need more integrity-checks and some error handling, but you probably get the idea.