Support the ongoing development of Laravel.io →
Configuration Session Cache
Last updated 1 year ago.
0

Have you checked your AuthController? There's a protected variable with the name $redirectTo that should be configured to point to wherever you want the authenticated user to go when they login.

0

Thanks for your reply.

I added this:

protected $redirectTo = '/users/login';

But it is doing the same.

0

AtomicRSA said:

Thanks for your reply.

I added this:

protected $redirectTo = '/users/login';

But it is doing the same.

You need to set the $redirectTo variable to where the users go after they are authenticated.

For example when they log in, they are redirected to /home or /privatearea

0

Hi

I did change it to:

protected $redirectTo = '/dashboard';

And it does the same :(

0

Try to replace to this

protected $redirectTo = '/';

0

Sign in to participate in this thread!

Eventy

Your banner here too?

AtomicRSA atomicrsa Joined 24 Jun 2015

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.