Advanced client configuration

Advanced Bugsnag client usage for additional control over how and when Bugsnag sends notifications.

Customizing transport

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',