maybe like this?
'_token' => 'required',
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I'm having an issue with password reset. It's quiet frustrating that something that should work right out of the box failed on me. (I'm using the built-in scaffolding)
All validation works perfectly but I simply couldn't change my password or I should say, 'confirm my NEW password.
The page simply simply redirect to the reset page and no error whatsoever. So I simply took the validation rules out and tried. Voila, "Undefined index: token" error.
\ ResetsPasswords.php
protected function rules()
{
return [
'token' => 'required',
'email' => 'required|email',
'password' => 'required|confirmed|min:8',
];
}
I'm just wondering what could possibly be the problem. Mismatched token?
Any advise is much appreciated.
Please or to participate in this conversation.