Skip to content

Commit

Permalink
Update readme with conditional service provider registration
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed May 3, 2016
1 parent 24d5b72 commit 9ef95ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ Install using composer:
Add the service provider to the `'providers'` array in `config/app.php`:

Jenssegers\Rollbar\RollbarServiceProvider::class,

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

```php
if ($this->app->environment('production')) {
$this->app->register(Jenssegers\Rollbar\RollbarServiceProvider::class);
}
```

Configuration
-------------
Expand Down

0 comments on commit 9ef95ce

Please sign in to comment.