Package Data | |
---|---|
Maintainer Username: | flyingluscas |
Maintainer Contact: | lucas.pires.mattos@gmail.com (Lucas Pires) |
Package Create Date: | 2016-09-15 |
Package Last Update: | 2017-10-18 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 03:15:56 |
Package Statistics | |
---|---|
Total Downloads: | 144 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 24 |
Total Watchers: | 1 |
Total Forks: | 2 |
Total Open Issues: | 5 |
This is a Laravel 5.x package to help you track down bugs on your applications by using notifications.
BugNotifier will catch the exceptions thrown by Laravel and notify you through e-mail.
Via Composer
$ composer require flyingluscas/bug-notifier
Add the BugNotifierServiceProvider
under the providers
section on config/app.php
file.
'providers' => [
// ...
FlyingLuscas\BugNotifier\BugNotifierServiceProvider::class,
],
Run this command in your terminal to publish the configuration file.
$ php artisan vendor:publish --provider="FlyingLuscas\BugNotifier\BugNotifierServiceProvider"
This command will generate the config/bugnotifier.php
config file.
Inside the configuration file, you can add the environments that BugNotifier should watch for exceptions, configure a list of exceptions that should be ignored and choose the driver used to send the notifications.
Ok, now that our service provider is in place and our configuration file is set, let's set up the BugNotifier to watch for exceptions in our application.
Go to your app/Exceptions/Handler.php
file, and scroll down to the report
method, this method is very important,
here you can intercept any exceptions thrown by Laravel, so use the Notify
facade to set it up.
use FlyingLuscas\BugNotifier\Facades\Notify;
// ...
public function report(Exception $exception)
{
parent::report($exception);
Notify::exception($exception);
}
And that's it, you are ready to track down every exception thrown by your application and be notified about it, if you wanna build your own notification driver, see this wiki for more information.
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 lucas.pires.mattos@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.