jenssegers / laravel-rollbar

Rollbar error monitoring integration for Laravel projects
329 stars 99 forks source link

Disabling Rollbar for local and testing environments #51

Closed alariva closed 8 years ago

alariva commented 8 years ago

Since laravel-rollbar throws an Exception if no access token is set, I'm not sure about the way to disable it for local testing.

Is there a suggested way to configure no ACCESS_TOKEN for testing/continuous integration environments?

I'm currently adding this to register() at AppServiceProvider.php

if ($this->app->environment() != 'testing') {
    $this->app->register(Jenssegers\Rollbar\RollbarServiceProvider::class);
}

But unsure about if it's the best way.

Thanks in advance!

jenssegers commented 8 years ago

I'm doing that as well. Probably best to add it to the readme :)

jenssegers commented 8 years ago

Updated readme!