Usually signed URLs are used in 1-time actions such as resetting passwords or accepting invitations, etc. After the action is complete you can delete the relevant record in DB (a row in password_resets or invitations table) which will make the link useless as the associated record doesn't exist anymore.
As I mentioned in the lesson, expiration time is part of the hash, so changing the expiration time will lead to a mismatch of the hash and hence Laravel will block the request. That's the beauty of the system.
this is excellent can I use only one route and controller
how do i generate url that expires after it being clicked
Usually signed URLs are used in 1-time actions such as resetting passwords or accepting invitations, etc. After the action is complete you can delete the relevant record in DB (a row in password_resets or invitations table) which will make the link useless as the associated record doesn't exist anymore.
I love your videos, excellent presentation. Very easy to follow. Great Job
Glad you like them!
What happens if you change the expiration time? 🤔
As I mentioned in the lesson, expiration time is part of the hash, so changing the expiration time will lead to a mismatch of the hash and hence Laravel will block the request. That's the beauty of the system.
before watching i liked you video bro
Thanks for the support bro!