I don't know what the industry standard is, but I would do something like the following:
On registration I would create some sort of random token that gets saved with the user entry in the db. That token gets emailed in the form of a link. When the user clicks the link, the token is compared against the email address.
Route::get('email-confirmation/{email}/{token}', function ($email, $token) {
//do magic. check email matches token in database entry, activate account, delete temp confirmation entry, etc
echo $email . $token;
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community