Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

deansatch's avatar

token mismatch on localhost only

I have a site which works fine on the live server. It also works fine on my old macbook localhost. I have copied it over to my new macbook but when I try sign in or sign up I get a token mismatch error. Tried it on valet, then homestead (with homestead mysql) but it still throws the error. "Illuminate \ Session \ TokenMismatchException"

This is an exact copy of the one on my other macbook - I've tried clearing cache & config. Cleared cookies. If I push this to production it works ok on there.

Any ideas?

0 likes
1 reply

Please or to participate in this conversation.