Exception reporter for laravel
70,251
58
3
Package Data
Maintainer Username: encore
Maintainer Contact: zosong@126.com (z-song)
Package Create Date: 2017-07-21
Package Last Update: 2022-01-25
Home Page: http://laravel-admin.org/
Language: PHP
License: MIT
Last Refreshed: 2024-11-09 03:02:01
Package Statistics
Total Downloads: 70,251
Monthly Downloads: 580
Daily Downloads: 31
Total Stars: 58
Total Watchers: 3
Total Forks: 25
Total Open Issues: 9

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