lundi 30 juillet 2018

Laravel 5.5: how to stop redirect to previous page after login

I am using Laravel default authentication When user loges in I redirect him/her to /dashboard instead of /home

changing this line in RedirectIfAuthenticated

return redirect('/home);`

to

return redirect('/dashboard');

now the if user hits another url that requires authentication lets say /abc it will redirect user to login but as soon as he/she gets login it takes user to /abc instead of /dashboard (As per my requirement)I want it to always take user to /dashboard whenever he/she loges in irrespective of previous page he/she was trying to hit

Anybody got any idea which function is to be overwritten or anything...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire