{"action":"created","issue":{"url":"https://api.github.com/repos/dingo/api/issues/721","labels_url":"https://api.github.com/repos/dingo/api/issues/721/labels{/name}","comments_url":"https://api.github.com/repos/dingo/api/issues/721/comments","events_url":"https://api.github.com/repos/dingo/api/issues/721/events","html_url":"https://github.com/dingo/api/issues/721","id":116085006,"number":721,"title":"Middleware terminate() not being called","user":{"login":"aleemb","id":46616,"avatar_url":"https://avatars.githubusercontent.com/u/46616?v=3","gravatar_id":"","url":"https://api.github.com/users/aleemb","html_url":"https://github.com/aleemb","followers_url":"https://api.github.com/users/aleemb/followers","following_url":"https://api.github.com/users/aleemb/following{/other_user}","gists_url":"https://api.github.com/users/aleemb/gists{/gist_id}","starred_url":"https://api.github.com/users/aleemb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleemb/subscriptions","organizations_url":"https://api.github.com/users/aleemb/orgs","repos_url":"https://api.github.com/users/aleemb/repos","events_url":"https://api.github.com/users/aleemb/events{/privacy}","received_events_url":"https://api.github.com/users/aleemb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-10T11:06:59Z","updated_at":"2015-11-10T11:09:30Z","closed_at":null,"body":"This might be related to https://github.com/laravel/framework/issues/9357\r\n\r\nWith Dingo, the `terminate()` method on middleware is not called. This breaks all sorts of core app functionality, a basic example of which is  Sessions which rely on `SessionStart` whose `terminate()` method does the work of persisting sessions."},"comment":{"url":"https://api.github.com/repos/dingo/api/issues/comments/155390969","html_url":"https://github.com/dingo/api/issues/721#issuecomment-155390969","issue_url":"https://api.github.com/repos/dingo/api/issues/721","id":155390969,"user":{"login":"aleemb","id":46616,"avatar_url":"https://avatars.githubusercontent.com/u/46616?v=3","gravatar_id":"","url":"https://api.github.com/users/aleemb","html_url":"https://github.com/aleemb","followers_url":"https://api.github.com/users/aleemb/followers","following_url":"https://api.github.com/users/aleemb/following{/other_user}","gists_url":"https://api.github.com/users/aleemb/gists{/gist_id}","starred_url":"https://api.github.com/users/aleemb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleemb/subscriptions","organizations_url":"https://api.github.com/users/aleemb/orgs","repos_url":"https://api.github.com/users/aleemb/repos","events_url":"https://api.github.com/users/aleemb/events{/privacy}","received_events_url":"https://api.github.com/users/aleemb/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T11:09:30Z","updated_at":"2015-11-10T11:09:30Z","body":"Forgot to mention but I have noticed this on Lumen."}}