Alright, I know this might seem trivial and hopefully I just missed it...
I am using the out of the box Auth in Laravel 5. I have everything working fine as expected minus one issue...
I am using a modal to log a user in, after a successful login - the user is redirected to
/home which does not exist anymore...
That being said, where can I change the redirect for successful authentication?
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.
Auth\AuthController I simple needed to set the property:
protected $redirectPath = '/';
AuthenticatesAndRegistersUsers trait has a method
redirectPath that checks if that property exists. If that property is absent it will redirect to
Sign in to participate in this thread!