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

Awahab708's avatar

Laravel 5.0.3 TokenMismatchException in VerifyCsrfToken.php line 46:

Hi all, I've been working on Laravel 5 project, I'm using Form model binding and I've included a form with PATCH method and when I submit the form I get the error of TokenMismatch. I'm searching the answer for the last two days but I'm unable to find any solution. I'm totally stuck :(

0 likes
3 replies
bobbybouwmann's avatar

Can you show your form? Did you add the csrf_token to your form? That one is required for posting!

Awahab708's avatar

Hi @bobbybouwmann thanks for getting back to me. I added the csrf_token but it wasn't working. However, I installed Laravel again and then tried to implement the same functionality and it worked.

Please or to participate in this conversation.