I created a step-by-step form using Laravel Livewire, following this tutorial: here.
However, I'm experiencing some issues when logging in after logging out, when I submit the form I get a alert:
"This page has expired".
Interestingly, when I run php artisan optimize:clear, the alert disappears. Does anyone know the reason behind this behavior?

try to add this to
VerifyCsrfTokenMiddleware: