jenssegers / laravel-rollbar

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

Only in production environment #75

Closed gabrielbuzziv closed 7 years ago

gabrielbuzziv commented 7 years ago

How can i enable the Rollbar only for production mod, i don't want to be spammed in my emaisl while my ap is locally.

drbyte commented 7 years ago

The answer to that is in the README ...

If you only want to enable Rollbar reporting for certain environments you can conditionally load the service provider in your AppServiceProvider:


if ($this->app->environment('production')) {
    $this->app->register(\Jenssegers\Rollbar\RollbarServiceProvider::class);
}```
gabrielbuzziv commented 7 years ago

Ops, sorry didn't see