laravel-admin-ext / reporter
Exception reporter for laravel
Installs: 70 452
Dependents: 0
Suggesters: 0
Security: 0
Stars: 58
Watchers: 3
Forks: 25
Open Issues: 9
Requires
- php: >=7.0.0
- ext-json: *
- encore/laravel-admin: >=1.5
- laravel/framework: >=5.5
Requires (Dev)
- laravel/laravel: >=5.5
- phpunit/phpunit: >=6.0
This package is auto-updated.
Last update: 2024-10-25 15:10:45 UTC
README
This tool stores the exception information into the database and provides a developer-friendly web interface to view the exception information.
Screenshot
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).