Support the ongoing development of Laravel.io →
Authentication Security Validation
Last updated 2 years 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 2 years 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 2 years ago.
0

Sign in to participate in this thread!

Eventy

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?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.