Advanced BugSnag client usage for additional control over how and when BugSnag sends notifications.
If you require using a proxy or a custom timeout length when sending error reports to BugSnag, you can provide a customized HTTP client via Guzzle. BugSnag will use the Guzzle instance bound to bugsnag.guzzle
, if one exists.
// Customizable HTTP client $this->app->singleton('bugsnag.guzzle', function () { return new GuzzleHttp\Client([ 'timeout' => 30, 'proxy' => 'tcp://localhost:8125', ]); });