laravel/framework — pull request #6501 by antonioribeiro (2014-11-26 14:55:43+00:00)
Title: Fix sessions not being saved after some exceptions

When handling, for instance, TokenMismatchException, the session was not being saved. Implementation follows Taylor comment in #laravel-dev:

23:56:36 < TaylorOtwell> AntonioRibeiro: yeah i think session write middleware might just need a terminate implementation