Summer Sale! All accounts are 50% off this week.

carlo's avatar

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.