0

I'm following along with docs which says that you can configure Laravel to get the user to re-enter their password on routes that you specify. However, if I follow the example I get an error:

 Illuminate\Contracts\Container\BindingResolutionException
Target class [password.confirm] does not exist.

Any ideas? I'm running Laravel 6.16.0. I'm also using the LdapRecords package.

1 Answer 1

3

Sorted it. I've been upgrading Laravel 6.0 since initial release to get to 6.16.0. This feature was added in 6.2, however my Kernel.php was still like the original version. All I needed to do was add:

'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,

to the routeMiddleware section of Kernel.php.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.