You can disable the csrf token for a route in the VerifyCsrfToken middleware file.
Jun 5, 2016
2
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?
Level 47
Please or to participate in this conversation.