Can't login into panel when user model use uuid

Hello i'm using uuid's on mi user model, I have configured all what is necessary to use it but I can't login, the credentials are correct, but it redirect to me to the login screen again, thanks for your help.
6 Replies
Zacktamondo
Zacktamondo6mo ago
I encountered the same issue, all you have to do after updating the user model and migration is to also update the sessions table user_id column to be foreignUuid instead of foreignId. Hope that helps.
Jamie Cee
Jamie Cee5mo ago
Is this in the documentation anyway? Might be worth adding if not, as I've struggled to find this solution until I searched the discord for "user uuid"
g0to
g0to5mo ago
what was the solution?
Dennis Koch
Dennis Koch5mo ago
It’s not really Filament related and I think it’s too advanced to be in the Laravel docs but you can try.
Jamie Cee
Jamie Cee5mo ago
I get that, but I also wouldn't say it's uncommon that people change ID to be a uuid
Daniel
Daniel5mo ago
you are a god man thanks
Want results from more Discord servers?
Add your server