-
I'm setting up a new Laravel 11 project for a Vue frontend via an API. I have got the login and log out working correctly, but when I try the reset password endpoint (/forgot-password), I receive a 500 error and From the Fortify docs it seems like this should work out of the box. Is there anything I am missing? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
joy2362
Apr 18, 2024
Replies: 1 comment 5 replies
-
Add the following code in your fortify service provider boot method and check if its working or not also make sure blade file exits
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue occurs because you may have set views as false and it removes password reset route and that's why it's not able to generate password reset url to solve this issue you can add these line in you app service provider boot method
use Illuminate\Auth\Notifications\ResetPassword;
and
ResetPassword::createUrlUsing(function ($user, string $token) { return 'http://127.0.0.1:8000/admin/reset-password/'.$token; });