We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24d5b72 commit 9ef95ceCopy full SHA for 9ef95ce
README.md
@@ -17,6 +17,14 @@ Install using composer:
17
Add the service provider to the `'providers'` array in `config/app.php`:
18
19
Jenssegers\Rollbar\RollbarServiceProvider::class,
20
+
21
+If you only want to enable Rollbar reporting for certain environments you can conditionally load the service provider in your `AppServiceProvider`:
22
23
+```php
24
+if ($this->app->environment('production')) {
25
+ $this->app->register(Jenssegers\Rollbar\RollbarServiceProvider::class);
26
+}
27
+```
28
29
Configuration
30
-------------
0 commit comments