dedermus / reporter
Exception reporter for Laravel open-admin-core
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 2
pkg:composer/dedermus/reporter
Requires
- php: ^8.2
- ext-json: *
- dedermus/open-admin-core: ^v2.0
- laravel/framework: >=7.0
Requires (Dev)
- laravel/laravel: >=7.0
- phpunit/phpunit: >=6.0
This package is not auto-updated.
Last update: 2025-10-17 17:13:28 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 dedermus/reporter
$ php artisan vendor:publish --tag=open-admin-reporter
$ php artisan migrate --path=vendor/dedermus/reporter/database/migrations
$ php artisan admin:import reporter
Open bootstrap/app.php,
- Add:
use OpenAdminCore\Admin\Reporter\Reporter; - Call
$exceptions->reportable(function (Throwable $e) { Reporter::report($e); });insideApplication...withExceptionsmethod:
<?php use Illuminate\Foundation\Application; use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Middleware; use OpenAdminCore\Admin\Reporter\Reporter; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( web: __DIR__.'/../routes/web.php', commands: __DIR__.'/../routes/console.php', health: '/up', ) ->withMiddleware(function (Middleware $middleware) { // }) ->withExceptions(function (Exceptions $exceptions) { // Add This line $exceptions->reportable(function (Throwable $e) { Reporter::report($e); }); })->create();
Open http://localhost/admin/exceptions to view exceptions.
License
Licensed under The MIT License (MIT).
