composer require bfg/admin-exception-reporter
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);
}
...
}