bfg/admin-exception-reporter
最新稳定版本:1.0.0
Composer 安装命令:
composer require bfg/admin-exception-reporter
包简介
Exception reporter for laravel
README 文档
README
Install
composer require bfg/admin-exception-reporter
Admin install
php artisan admin:extension bfg/admin-exception-reporter --install
php artisan migrate
Open app/Exceptions/Handler.php, call Reporter::report() inside report method:
namespace App\Exceptions; use Admin\Extend\AdminExceptionReporter\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); } ... }
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-08