I am trying to create a RESTful API by using Laravel. I have created my controller using php artisan make:controller RestController and this is my controlle
I solved this problem by changing my server cache setting.
You can disable all of your caching systems (Nginx, Cloudflare, ...) to check it and then
turn it on by applying QueryString + Cookie to prevent caching a page with old csrf token in it.