Laravel ResponseReceived event context

  events, laravel

I have an problem. I created ResponseReceived listener to log some info, but I need understand where this event was dispatched. As I can see I don’t have context in event. It will be perfect to get access to parent Request or App intstance.

Did somebody has similar problem and how to resolve this? I don’t want extend Http and PendingRequest classes. I plan build separated package for logger and try to build everything inside package.

Source: Laravel

Leave a Reply