bfg/admin-exception-reporter

Exception reporter for laravel

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:Blade

Type:bfg-admin-extension

0.1.2 2023-11-09 15:28 UTC

This package is auto-updated.

Last update: 2024-04-09 16:16:05 UTC


README

Laravel Logo

Total Downloads Latest Stable Version License

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);
    }
    
    ...

}