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
Yes it worked. Thanks Johnvic. Laravel is seriously awesome, all i had to do was to replace a word in my code. \m/\m/
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community