Support the ongoing development of →
Last updated 1 year ago.

There are many ways Simple is you can save last url in session while redirecting to login page & after successful login redirect back to saved url.


--- return redirect('auth/login'); +++return redirect()->guest('auth/login');

guest function will save a session as @john5db said. And you need return redirect()->intended() in your login function.


Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

arctushar arctushar Joined 5 Oct 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.