Package Data | |
---|---|
Maintainer Username: | _webkid |
Package Create Date: | 2016-05-06 |
Package Last Update: | 2017-07-03 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-17 03:00:44 |
Package Statistics | |
---|---|
Total Downloads: | 269 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Run:
composer require webkid/bugreporter
Add the service provider to config/app.php
under providers
:
'providers' => [
Webkid\BugReporter\BugReporterServiceProvider::class,
]
Publish Config
php artisan vendor:publish --provider="Webkid\BugReporter\BugReporterServiceProvider"
Update config file:
config/bugreports.php
Update app/Exceptions/Handler.php file:
public function report(Exception $e)
{
//fire bug report here
$bugReport = new Reporter();
$bugReport->sendReport($e);
//old code
return parent::report($e);
}
Also provide environment variables:
UKIE_REPORTS_ENABLE=true
UKIE_REPORTS_URL=
UKIE_REPORTS_TOKEN=