Skip to content

Commit bf42362

Browse files
committed
Fixed the access_token config getter function.
1 parent 294d3ae commit bf42362

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/RollbarServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ protected static function config($key = '', $default = null)
8888
$envKey = 'ROLLBAR_TOKEN';
8989
}
9090

91+
if ($key === 'token') {
92+
$key = 'access_token';
93+
}
94+
9195
$logKey = empty($key) ? 'logging.channels.rollbar' : "logging.channels.rollbar.$key";
9296

9397
return getenv($envKey) ?: Config::get($logKey, $default);

0 commit comments

Comments
 (0)