I am inserting a token into the database and including it in the reset link. For the showResetForm(), I want to check the value in the URL against database values. If URL token doesn't match any tokens in the password_resets table, the page simply redirects and will not even show the form.
How would I go about doing this in Laravel? Traditionally I would just access $_GET[value] or explode the URL into an array and access the desired element.
Okay I was looking over some other code and found that all I have to do is pass an argument to the controller method and Laravel automatically grabs the 3rd URL parameter!
Example.
site.com/password/reset/fjgngdymgkg
public function showResetForm($id)
{
dd($id); // Returns fjgngdymgkg
}