Skip to content

Instantly share code, notes, and snippets.

@ilvalerione
Last active March 1, 2023 06:37
Show Gist options
  • Save ilvalerione/bfed884d237a4c8cb6899443916bc096 to your computer and use it in GitHub Desktop.
Save ilvalerione/bfed884d237a4c8cb6899443916bc096 to your computer and use it in GitHub Desktop.
InspectorMonitoringMiddleware extends \Inspector\Laravel\Middleware\WebRequestMonitoring
{
public function terminate($request, $response)
{
parent::terminate($request, $response);
// Get what you want from the $request
inspector()->transaction()->http->request->headers = $request->headers->all();
}
}
@opn-sumit
Copy link

thanks @ilvalerione , it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment