4 months ago

Redirect not working

Posted 4 months ago by mgmk


I got strange redirecting problem after authenticated. Here is my controller -

Auth::attempt($credentials) {
	return redirect()->intended('home');

It should be redirect to intended URL after authentication is successful.

Now the problem is that after successfully authenticated, the page is loading so long and cannot redirect to intended url, it's like hanging. But in the behind it's already authenticated. When I refresh the page, I can see user is already authenticated.

I'm on homestead and laravel 5.8. Does anyone got any similar experiences before?

Please sign in or create an account to participate in this conversation.