Skip to content

bfg-s/admin-exception-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

}

About

Exception reporter for laravel

Resources

License

Stars

Watchers

Forks

Packages

No packages published