- Copy the contents of ActivityLogEventSubscriber.php into your Laravel project, typically in the app/Listeners directory.
- Register the ActivityLogEventSubscriber in your EventServiceProvider:
protected $subscribe = [
\App\Listeners\ActivityLogEventSubscriber::class,
];
- Customize the log data based on specific requirements.
- Include additional context, user information, or other relevant details.
check some examples by @aniket-magadum
RequestHandled: https://gist.github.com/aniket-magadum/947cd07329dfb618a9c04dfdd425dfc8
CommandFinished: https://gist.github.com/aniket-magadum/9e56e4d888587c4632bc9bfc712586c1
ResponseReceived: https://gist.github.com/aniket-magadum/23d91888bd4d1071280d11562d3884d7