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

1.0.0 2024-07-17 21:52 UTC

This package is auto-updated.

Last update: 2024-11-17 22:35:21 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);
    }
    
    ...

}