LaravelPackages.net
Acme Inc.
Toggle sidebar
daimakuai-ext/reporter

Exception reporter for laravel

35
0
v1.0.0
About daimakuai-ext/reporter

daimakuai-ext/reporter is a Laravel package for exception reporter for laravel. It currently has 0 GitHub stars and 35 downloads on Packagist (latest version v1.0.0). Install it with composer require daimakuai-ext/reporter. Discover more Laravel packages by daimakuai-ext or browse all Laravel packages to compare alternatives.

Last updated

Exception reporter for daimakuai-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

daimakuai-admin_exceptions

Installation

$ composer require daimakuai-ext/reporter -vvv

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

$ php artisan migrate --path=vendor/daimakuai-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 Jblv\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).

Comments