Sentry Service Provider for Lumberjack
, (*1)
A Service Provider for the Lumberjack framework that allows simple integration to Sentry., (*2)
Written & maintained by the team at The ICE Agency, (*3)
Requirements
Installing
- Install Lumberjack, see the guide here.
 
- Install via Composer:
composer require iceagency/lumberjack-sentry-service-provider
 
Getting Started
- Create a config file called 
config/sentry.php
 
- Add the following:
 
<?php
return [
    'enabled' => getenv('SENTRY_ENABLED'),
    'dsn' => getenv('SENTRY_DSN')
];
- Add your Sentry DSN to your .env
 
SENTRY_DSN=https://public:secret@sentry.example.com/1
- Add the Service Provider to the Providers array in 
config/app.php as follows: 
'providers' => [
    ...
    IceAgency\Lumberjack\Providers\SentryServiceProvider::class,
    ...
],
Usage
By default, Sentry will automatically be sent exceptions, to disable Sentry for a specific environment, add this following to your .env, (*4)
SENTRY_ENABLED=false