Support the ongoing development of Laravel.io →
Authentication Session Laravel.io
Last updated 2 years ago.
0

Your logout line has a typo.

Aurh::logout();

Should be:

Auth:logout();
0

Are you using any javascript at all to intercept the click? Do you have any middleware applied to it?

0

@thomastkim : No , I have not used any javascript and not any middleware applied.

0

I can't see anything that wouldn't work unless you didn't import the classes.

When you log out, does it actually log the user out, but the redirect isn't working? Or does the user not log out either?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

ravi142 ravi142 Joined 12 Oct 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.