汤小浪
汤小浪

Reputation: 43

laravel 5.1 about Resetting Passwords

If I didn't log in , I can go to Route:http://localhost:8000/password/email,and show the view. But, when I logged in,it go to Route:http://localhost:8000/home with an error

NotFoundHttpException in RouteCollection.php line 161:

I think it should also return view password.blade.php,but it did not

How to solve?

Upvotes: 0

Views: 49

Answers (1)

Ash
Ash

Reputation: 6783

After a successful authentication the default action is to go to '/home', if there isn't the associated routes or views (controllers are provided by default) it causes the 'NotFoundHttpException' you mentioned.

If you haven't done already, you need to create the routes and views . The documentation mentions what you need to include.

If these exist already and you're wondering how to change the default behaviour of redirecting the user to '/home', you you can customize the post-authentication redirect location by defining a redirectPath property on the AuthController:

protected $redirectPath = '/dashboard';

Upvotes: 0

Related Questions