Support the ongoing development of Laravel.io →
posted 10 years ago
Forms

Hello,

Blade forms automatically generate a CSRF token. How do I disable it?

The reason why I want to disable it is because each time I refresh the page with F5, the Confirm Form Resubmission thing pops out. I think the CRLS token is the cause.

Thank you

Last updated 3 years ago.
0

CSRF token is probably not the cause of this.

If you post to a certain page you should do a redirect when you are done with your code to make sure you do not get the "Confirm Form Resubmission". Refresh is making you post your information again.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

han4wluc han4wluc Joined 18 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.