sliverwing / exception-reporter-laravel
v0.2.5
2018-06-25 15:00 UTC
Requires
- guzzlehttp/guzzle: ~6.0
This package is not auto-updated.
Last update: 2024-09-29 02:54:52 UTC
README
再次让异常变得出色 💪
当前支持
- 电子邮件
- 钉钉机器人
用法
composer require "sliverwing/laravel-exception-reporter"
- 将
Sliverwing\ExceptionReporter\ExceptionReporterServiceProvider::class
添加到 app.php - 运行
php artisan vendor:publish --provider=ExceptionReporterServiceProvider
- 编辑
config/exception-reporter.php
- 运行
php artisan exp-reporter:dingtalk-bot:test
或php artisan exp-reporter:mail:test
进行测试 - 编辑
app\Exceptions\Handler.php
<?php namespace App\Exceptions; use Exception; use Illuminate\Auth\AuthenticationException; // use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use \Sliverwing\ExceptionReporter\ExceptionHandler;
- 运行
php artisan queue:work --tries=1