Well basically what I need is to delete some files from the storage folder, but I want that to happen every time a request is terminated.
I have already created an event and a listener that is responsible for doing that, which is called before doing the return in the controller. But since some exception may happen, obviously the event will not be launched.
I need that to always run regardless of whether an exception occurs or not.
The laravel documentation link talks about it but it's in version 4.2 and that's it the current version does not have it.