{"action":"created","issue":{"url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/13","repository_url":"https://api.github.com/repos/spatie/laravel-responsecache","labels_url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/13/comments","events_url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/13/events","html_url":"https://github.com/spatie/laravel-responsecache/issues/13","id":134509935,"number":13,"title":"Error on login/redirect","user":{"login":"EuropeanRespiratorySociety","id":782171,"avatar_url":"https://avatars.githubusercontent.com/u/782171?v=3","gravatar_id":"","url":"https://api.github.com/users/EuropeanRespiratorySociety","html_url":"https://github.com/EuropeanRespiratorySociety","followers_url":"https://api.github.com/users/EuropeanRespiratorySociety/followers","following_url":"https://api.github.com/users/EuropeanRespiratorySociety/following{/other_user}","gists_url":"https://api.github.com/users/EuropeanRespiratorySociety/gists{/gist_id}","starred_url":"https://api.github.com/users/EuropeanRespiratorySociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EuropeanRespiratorySociety/subscriptions","organizations_url":"https://api.github.com/users/EuropeanRespiratorySociety/orgs","repos_url":"https://api.github.com/users/EuropeanRespiratorySociety/repos","events_url":"https://api.github.com/users/EuropeanRespiratorySociety/events{/privacy}","received_events_url":"https://api.github.com/users/EuropeanRespiratorySociety/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-18T08:12:41Z","updated_at":"2016-02-27T17:49:23Z","closed_at":null,"body":"Hello,\r\n\r\nWhen I use response cache on the whole website I have an CSRF Token (line 67) issue. \r\n\r\nWhen I do not cache the login/logout route either using the middleware on the controller or in the route\r\n        `$this->middleware('doNotCacheResponse');`\r\nor\r\n\r\n\tRoute::get('logout', ['middleware' => 'doNotCacheResponse', 'uses' => 'Auth\\AuthController@logout']);\r\n\tRoute::get('login', ['middleware' => 'doNotCacheResponse', 'uses' => 'Auth\\AuthController@showLoginForm']);\r\n\tRoute::post('login', ['middleware' => 'doNotCacheResponse', 'uses' => 'Auth\\AuthController@login']);\r\n\r\nThe login process does not work as my protected routes are not available and I am redirected to the homepage.\r\n\r\nI am using Laravel 5.2\r\n\r\nAny Idea?\r\n\r\nSam"},"comment":{"url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/comments/189689929","html_url":"https://github.com/spatie/laravel-responsecache/issues/13#issuecomment-189689929","issue_url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/13","id":189689929,"user":{"login":"EuropeanRespiratorySociety","id":782171,"avatar_url":"https://avatars.githubusercontent.com/u/782171?v=3","gravatar_id":"","url":"https://api.github.com/users/EuropeanRespiratorySociety","html_url":"https://github.com/EuropeanRespiratorySociety","followers_url":"https://api.github.com/users/EuropeanRespiratorySociety/followers","following_url":"https://api.github.com/users/EuropeanRespiratorySociety/following{/other_user}","gists_url":"https://api.github.com/users/EuropeanRespiratorySociety/gists{/gist_id}","starred_url":"https://api.github.com/users/EuropeanRespiratorySociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EuropeanRespiratorySociety/subscriptions","organizations_url":"https://api.github.com/users/EuropeanRespiratorySociety/orgs","repos_url":"https://api.github.com/users/EuropeanRespiratorySociety/repos","events_url":"https://api.github.com/users/EuropeanRespiratorySociety/events{/privacy}","received_events_url":"https://api.github.com/users/EuropeanRespiratorySociety/received_events","type":"User","site_admin":false},"created_at":"2016-02-27T17:49:23Z","updated_at":"2016-02-27T17:49:23Z","body":"By the way, I am on Laravel 5.2\r\n\r\nHere is the code that gives me issues: https://github.com/EuropeanRespiratorySociety/ERSTemplate-dev\r\n\r\nyou can test the route blog. If you want to test the login, i need to give you a user/pw (I authentify through a webservice on an other db)"}}