atijust/laravel-rollbar

Rollbar integration for Laravel
67
Install
composer require atijust/laravel-rollbar
PHP:>=5.3.0
License:MIT
Last Updated:Jun 29, 2014
Links: GitHub  ·  Packagist
Maintainer: atijust

Rollbar integration for Laravel

Build Status Coverage Status Latest Stable Version Latest Unstable Version License Dependency Status

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']);