bfg / admin-exception-reporter
Exception reporter for laravel
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Language:Blade
Type:bfg-admin-extension
Requires
- php: ^8.0|^8.1
- bfg/admin: ^6.4
This package is auto-updated.
Last update: 2024-11-17 22:35:21 UTC
README
Install
composer require bfg/admin-exception-reporter
Admin install
php artisan admin:extension bfg/admin-exception-reporter --install
php artisan migrate
Open app/Exceptions/Handler.php
, call Reporter::report()
inside report
method:
namespace App\Exceptions; use Admin\Extend\AdminExceptionReporter\Reporter; use Exception; use Illuminate\Auth\AuthenticationException; use Illuminate\Validation\ValidationException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; class Handler extends ExceptionHandler { ... public function report(Exception $exception) { if ($this->shouldReport($exception)) { Reporter::report($exception); } // parent::report($exception); } ... }