Laravel 5.8/6.x/7.x bug notifier
Laravel 5.8/6.x/7.x package for logging errors to larabug.com
You can install the package through Composer.
composer require larabug/larabug
Then publish the config and migration file of the package using artisan.
php artisan vendor:publish --provider="LaraBug\ServiceProvider"
And adjust config file (
config/larabug.php) with your desired settings.
Note: by default only production environments will report errors. To modify this edit your larabug configuration.
All that is left to do is to define 2 env configuration variables.
LB_KEY is your profile key which authorises your account to the API.
LB_PROJECT_KEY is your project API key which you receive when creating a project.
Get these variables at larabug.com
You can use LaraBug as a log-channel by adding the following config to the
channels section in
'channels' => [ // ... 'larabug' => [ 'driver' => 'larabug', ], ],
After that you have configured the LaraBug channel you can add it to the stack section:
'channels' => [ 'stack' => [ 'driver' => 'stack', 'channels' => ['single', 'larabug'], ], //... ],
The larabug package is open source software licensed under the license MIT