{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/9071","labels_url":"https://api.github.com/repos/laravel/framework/issues/9071/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/9071/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/9071/events","html_url":"https://github.com/laravel/framework/issues/9071","id":85203235,"number":9071,"title":"TokenMismatchException in VerifyCsrfToken.php line 46","user":{"login":"BardiaAfshin","id":1905150,"avatar_url":"https://avatars.githubusercontent.com/u/1905150?v=3","gravatar_id":"","url":"https://api.github.com/users/BardiaAfshin","html_url":"https://github.com/BardiaAfshin","followers_url":"https://api.github.com/users/BardiaAfshin/followers","following_url":"https://api.github.com/users/BardiaAfshin/following{/other_user}","gists_url":"https://api.github.com/users/BardiaAfshin/gists{/gist_id}","starred_url":"https://api.github.com/users/BardiaAfshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BardiaAfshin/subscriptions","organizations_url":"https://api.github.com/users/BardiaAfshin/orgs","repos_url":"https://api.github.com/users/BardiaAfshin/repos","events_url":"https://api.github.com/users/BardiaAfshin/events{/privacy}","received_events_url":"https://api.github.com/users/BardiaAfshin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-04T17:47:02Z","updated_at":"2015-06-04T17:50:03Z","closed_at":"2015-06-04T17:50:03Z","body":"I have the following route.php\r\n```php\r\nRoute::resource('/api/v1/message', 'MessagingController',\r\n                ['only' => ['store']]);\r\n```\r\n\r\nwith the following snippet from my resource controller\r\n```php\r\n\tpublic function store($messageID)\r\n\t{\r\n        return 'creating '.$messageID;\r\n    }\r\n```\r\n\r\nWhen I attempt to POST to http://localhost:8000/api/v1/message I get the following exception\r\n\r\n```html\r\nTokenMismatchException in VerifyCsrfToken.php line 46:\r\n```\r\n\r\nThis issue is discussed here\r\nhttps://laracasts.com/discuss/channels/general-discussion/csrf-form-token-doesnt-match-session-token\r\n\r\nhowever, that discussion is using forms to post data. I'm building an API that will receive POST data."}}