Skip to content
This tool stores the exception information into the database and provides a developer-friendly web interface to view the exception information.
Branch: master
Clone or download
Latest commit e7b02d0 Apr 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
database/migrations Apply fixes from StyleCI Sep 28, 2017
resources
src fix issue Sep 28, 2017
.gitignore
LICENSE
README.md Update README.md [skip ci] Sep 28, 2017
composer.json

README.md

Exception reporter for laravel-admin

This tool stores the exception information into the database and provides a developer-friendly web interface to view the exception information.

StyleCI Packagist Total Downloads Pull request welcome

Screenshot

laravel-admin_exceptions

Installation

$ composer require laravel-admin-ext/reporter -vvv

$ php artisan vendor:publish --tag=laravel-admin-reporter

$ php artisan migrate --path=vendor/laravel-admin-ext/reporter/database/migrations

$ php artisan admin:import reporter

Open app/Exceptions/Handler.php, call Reporter::report() inside report method:

<?php

namespace App\Exceptions;

use Encore\Admin\Reporter\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);
    }
    
    ...

}

Open http://localhost/admin/exceptions to view exceptions.

License

Licensed under The MIT License (MIT).

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.