Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

carlo's avatar
Level 2

Submit form from static html

Hello, I want to include a small contact form in a blog post generated through laravel. Of course the post will be simple html, so I would insert the code for the form manually in it, like:

<form action="contact" method="post">
<input type="text" value="">
</form>

I then created a route and a controller, and a request. The problem is that I cannot validate the Csrf token this way and I receive this error:

TokenMismatchException in VerifyCsrfToken.php line 53

Is there any way to disable this security check for this route only or is there any other good approach to this?

0 likes
2 replies

Please or to participate in this conversation.