dedermus/reporter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

StyleCI Packagist Total Downloads Pull request welcome

Screenshot

open-admin-reporter

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,

  1. Add: use OpenAdminCore\Admin\Reporter\Reporter;
  2. Call $exceptions->reportable(function (Throwable $e) { Reporter::report($e); }); inside Application ... withExceptions method:
<?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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-07