Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vincent15000's avatar

InertiaJS : how to get the reset password token ?

Hello,

I need to retrieve the reset password token.

http://localhost:8000/reset-password/f91c417cc6ee2115d25cf4ea26136ea62e4e577a88a508cec2f9ebaa1ce70c37?email=helloworld@domain.com

To retrieve the token, the Laravel documentation suggests this.

request()->route('token')

But this will not work in VueJS.

Either I send the token as a props or I retrieve it via the document location in JS.

But there is perhaps a better way to retrieve this token ?

Thanks for your help.

Vincent

0 likes
2 replies

Please or to participate in this conversation.