Well, the 'redirectPath()' method will first check for a property called 'redirectTo' and if not found, it will redirect to \home. That being said, you could naturally hack the core controller method, but I would not recommend it. Better to follow the guideline ;)
Check out that link (Chapter 'Password Reminders & Reset > Password Reminder Controller) http://laravel.com/docs/master/authentication
i.e. open Root/app/Http/Controllers/Auth/PasswordController.php and add the respective variable
protected $redirectTo = '/xy';
That should help.
I really don't know what I was thinking when I wrote that... but that was somewhat the solution, with one exception.
On my Auth\AuthController
I simple needed to set the property:
protected $redirectPath = '/';
The AuthenticatesAndRegistersUsers
trait has a method redirectPath
that checks if that property exists. If that property is absent it will redirect to /home
.
Thanks again!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community