Install using composer:

composer require rollbar/rollbar-laravel


Add Project Access Token to .env:

ROLLBAR_TOKEN="{{ server_access_token }}"

Add the service provider to the 'providers' array in config/app.php (this package also supports Laravel 5.5's auto-discovery, which allows you to skip this step):


Send a test message

Add the following code to send a test message and confirm that Rollbar is properly configured:

\Log::debug('Test debug message');