laravel 5.8 verification email contains ID how to obfuscated it and verify it after click

66 Views Asked by At

I have a project that is made using Laravel 5.8.

I'm so surprised that Laravel verification link contains the raw id of the user given that this framework have a great decent amount of security !

Can someone give me the steps on how to change the ID (50) in this generated url /email/verify/50?expires=1680922977&signature=19e... ? 50 to something that can be encrypted/decrypted only on serve-side.

and i'm talking about from changing it to verify it.

0

There are 0 best solutions below