Skip to content
Advertisement

Laravel5: TokenMismatchException in compiled.php line 3123:

THE SITUATION:

Sorry in advance if it has already been asked. But no matter what I can never make it works.

I am using Laravel 5 as API.

I have a simple function to edit a task.

I am testing it through my web app or through Postman.

I am always getting this error:

JavaScript

TokenMismatchException

THE CODE:

The function:

JavaScript

The route:

JavaScript

THE QUESTION:

Why I am getting that error?

Advertisement

Answer

I solved it by inserting the route name as an item in the array $except in the file:

JavaScript

Like this:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement