Ganesh Ganesh - 6 days ago 4
reST (reStructuredText) Question

REST API patch method URI having token mismatch in laravel

I am trying to write a method in laravel 5.2 for the patch HTTP verb for REST , but its showing Token mismatch .
I have also added : protected $except = ['v0.1/api/mc-api','v0.1/api/mc-api/{mc_api}'

Answer

In your class VerifyCsrfToken $except array

change

'v0.1/api/mc-api/{mc_api}'

to

'v0.1/api/mc-api/*'