atijust/laravel-rollbar
Rollbar integration for Laravel
Installation
Add atijust/laravel-rollbar to your composer.json:
{
"require": {
"atijust/laravel-rollbar": "dev-master"
}
}
Add the service provider in app/config/app.php:
'Atijust\LaravelRollbar\LaravelRollbarServiceProvider',
Publish the configuration file:
php artisan config:publish atijust/laravel-rollbar
Add your rollbar access token in app/config/packages/atijust/laravel-rollbar/config.php:
'access_token' => 'your rollbar access token',
Usage
// to report exceptions
Log::error($exception);
// to send log-like messages
Log::info('message', ['foo' => 'bar']);