Hey guys,
As many people before me, I am losing my mind over this Session Expired 419 Error on the login page.
This is a fresh install with the following versions:
"require": { "php": "^8.2", "filament/filament": "^3.3", "laravel/framework": "^12.0", "laravel/tinker": "^2.10.1", "livewire/livewire": "^3.6" },
The order of installation:
- Laravel
- Livewire
- Filament
- I made a Filament user and tried to log in only to instantly get page expired.
I am really trying to get to the bottom of this because I want to use Filament in production and this cannot be happening with projects where money is involved.
It's alright to do a
$middleware->validateCsrfTokens(except: [ 'livewire/*',
or switch your SESSION_DRIVER to file on a toy project, but not in real-world applications. There has to a be a consisten bug / solution to this error.
Does anyone have a reason / solution for this?
I have currently tried publishing livewire configs, removing the cache multiple times, clearing cookies, clearing the whole Laravel cache, making a new user, running fresh migrations on a new database. Nothing worked.