Laravel Jetstream starter kit not authenticating #51091
Unanswered
Chukwusombiri
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Try setting $keyType = 'string'; in the model. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After installing a fresh laravel Jetstream starter kit, migrated my Database and seeded it, I tried to login and everything works fine. Afterwards, I updated User model to use uuid by using the HasUuid trait and setting protected incrementing to false. Also, I updated primary key field on users migration to accommodate uuid, then, migrated fresh and seeded db. I tried to login but it keeps redirecting back to login page. I removed uuid from user model and reverted my primary key field to use incrementing id, migrated and seeded. Everything works fine. Please what could be causing this behaviour. I've noticed so many wrong things too, like, Livewire stack I opted for during installation is not working properly.
Beta Was this translation helpful? Give feedback.
All reactions