ATTENTION: This package is no longer maintained, please see the new BugNotifier package.
Laker is a Laravel 5.2/5.3 package to help you track down bugs.
Laker catches all exceptions fired by Laravel and saves them on Bitbucket as issues.
Via Composer
$ composer require flyingluscas/laker
First thing you need to do is to add the LakerServiceProvider
under the providers
section on config/app.php
'providers' => [
// ...
FlyingLuscas\Laker\LakerServiceProvider::class,
],
Ok, now that our service provider is in place, we need to set up our configurarion file, run.
$ php artisan vendor:publish --provider="FlyingLuscas\Laker\LakerServiceProvider"
The command above will generate the config/laker.php
file.
Option | Description |
---|---|
account_slug | The slug of your account or team on Bitbucket. |
repository_slug | The slug of your repository on Bitbucket. |
auth | Your username and password from Bitbucket. |
All Laravel exceptions can be intercepted through the app/Exceptions/Handler.php
file.
On this file, go to the report
method and add this on the top.
use FlyingLuscas\Laker\Issue;
use FlyingLuscas\Laker\Services\Bitbucket;
public function report(Exception $exception)
{
$issue = new Issue($exception);
$bitbucket = new Bitbucket;
$issue->createOn($bitbucket);
parent::report($exception);
}
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.