Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

When you logout, I think laravel updates the remember_token field of your users table. If you have some kind of listeners on the saved event to deal with your id logic, you could try moving them to a created event instead and see if that fixes it.

Last updated 2 years ago.
0

Where would I check this? I don't have any event listeners that I am aware of. I did at one point which just logged the SQL queries but nothing else now.

Last updated 2 years ago.
0

Looking at your error stack, your user gets saved due to the remember_token and then firstOrCreate gets triggered. I'm not sure where you would have listeners set or what is going on with your code but you need to figure out why the firstOrCreate stuff is getting triggered on saves.

Last updated 2 years ago.
0

did you get any further with this?

Getting this error intermittently from mobile devices..

0

Sign in to participate in this thread!

Eventy

Your banner here too?

mstnorris mstnorris Joined 12 Mar 2014

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.