Requires Remember Me checked to log in successfully
Package
filament/filament
Package Version
3.2
Laravel Version
11.30.0
Livewire Version
No response
PHP Version
8.2.21
Problem description
I found a bug in Filament on Laravel 11 where, when my users table uses UUIDs for the id column and I have the HasUuids trait in my model, I am unable to log in to the panel without checking "Remember Me." However, if I check "Remember Me," the login works fine. When I use a non-UUID id in the users table, I can log in normally.
Why could this bug be happening
Expected behavior
Login normally.
Steps to reproduce
- install laravel 11
- install filament
- change id to uuid in table
- try to login
Reproduction repository (issue will be closed if this is not valid)
https://github.com/gioVerdiansyah/greenperpus
Relevant log output
No response
Make sure to alter $table->foreignId('user_id')->nullable()->index(); to $table->foreignUuid('user_id')->nullable()->index(); in default migration for session table (that is, if you're using database as the session driver.
Thanks @SETIexplorer!