Skip to content

Commit

Permalink
Add support for env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Oct 26, 2015
1 parent c2e6ac7 commit 18b422e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/RollbarServiceProvider.php
Expand Up @@ -38,8 +38,9 @@ public function register()
$this->app['RollbarNotifier'] = $this->app->share(function ($app)
{
$defaults = [
'environment' => $app->environment(),
'root' => $app->basePath(),
'environment' => $app->environment(),
'root' => $app->basePath(),
'access_token' => env('ROLLBAR_TOKEN')
];

$config = array_merge($defaults, $app['config']->get('services.rollbar'));
Expand Down

0 comments on commit 18b422e

Please sign in to comment.