Use getRouteKey() instead of getKey() on Verification URL #48294
Unanswered
ignacio-dev
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When creating a new verification URL, I think the method used should be
$notifiable->getRouteKey()
instead of$notifiable->getKey()
.That way, if you use a trait for hashing the ids on routes like
use HasHashid, HashidRouting;
, then the id would also be hashed on the email verification url.The
EmailVerificationRequest
would also need to change to:What do you guys think?
Beta Was this translation helpful? Give feedback.
All reactions