dedermus/reporter
最新稳定版本:2.0.1
Composer 安装命令:
composer require dedermus/reporter
包简介
Exception reporter for Laravel open-admin-core
README 文档
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).
统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-07
