webkid/bugreporter

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

A php class for Laravel to send bug reports with data

1.3 2017-07-03 13:55 UTC

This package is auto-updated.

Last update: 2021-07-14 22:26:30 UTC


README

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=