upkareno / error-reporter
Simple Error Reporting package
v1.7
2023-06-19 17:24 UTC
Requires
- php: ^7.1.8 || ^8.0
- guzzlehttp/guzzle: ^7.2
- laravel/framework: ^10.0
- laravel/sanctum: ^3.2
- laravel/tinker: ^2.8
Requires (Dev)
- fakerphp/faker: ^1.9.1
- laravel/pint: ^1.0
- laravel/sail: ^1.18
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^7.0
- phpunit/phpunit: ^10.0
- spatie/laravel-ignition: ^2.0
README
Install
composer require upkareno/error-reporter
Configuration
run this artisan command to publish provider
php artisan vendor:publish --provider="Upkareno\ErrorReporter\Providers\ReporterProvider"
Then run
php artisan migrate
Create a new reporter
php artisan make:reporter
enter your name and email address to report bugs to email address
Confing Reporter
open app/Exeptions/Handler.php
add the following lines :
public function register()
{
$this->reportable(function (Throwable $e) {
$reporter = new \Upkareno\ErrorReporter\Reporter();
$reporter->report($e);
});
}