© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
Arre

Error with updating a post request -(CSRF-token) - Livewire/update

What I'm Trying to Do:
I'm creating a settings page using the Spatie Laravel Settings plugin.

What I Did:
I recently resumed coding after a 5-6 month break. The last time I coded was with Laravel 10.10, right before Laravel 11 was released. Transitioning to Laravel 11 has been very challenging, especially with the structural changes in the framework. Previously, I had everything working just fine in v.10.10. However, since the update to Laravel 11 and the changes to the app folder, I'm encountering issues. Specifically, I'm receiving a CSRF error, and the POST request isn't updating as expected.

The Issue/Error:
I'm getting a 419 Page Expired error, which indicates a CSRF token issue. I do have a _token in the payload. If I disable CSRF protection in boostrap/app.php, everything works fine, but I know disabling CSRF is not a good practice and should only be a temporary solution. The request is being sent to /livewire/update, and I'm unsure how to resolve this issue with Laravel 11's new structure, especially since the middleware folder has been removed.

I'm also not sure if it's interfering with Spatie's MediaLibrary since I do also have that installed. Where the icon/favicon could be causing the issue here.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How can i disable livewire update POST request to {{domain}}/livewire/update
FilamentFFilament / ❓┊help
11mo ago
404 errror and Post request to livewire/update
FilamentFFilament / ❓┊help
2y ago
404 errror and Post request to livewire/update Import csv
FilamentFFilament / ❓┊help
17mo ago
livewire #on updateMonth with inputSelect
FilamentFFilament / ❓┊help
3y ago