Support the ongoing development of Laravel.io →
Authentication Security Validation
Last updated 5 months ago.
0

Check this return Redirect::intended('dashboard');, when a user is browsing a page that needs authentication, he will be redirected to login page and once logged in he will be redirected back to the page he wanted to go before login. But if previous page is not available, he will be redirected to yoursite.com/dashboard

Last updated 5 months ago.
0

Yes it worked. Thanks Johnvic. Laravel is seriously awesome, all i had to do was to replace a word in my code. \m/\m/

Last updated 5 months ago.
0

Sign in to participate in this thread!

LoadForge

Your banner here too?

joy014 joy014 Joined 12 Apr 2014

Moderators

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.

© 2022 Laravel.io - All rights reserved.