jpuck/laravel-exception-mailer
Composer 安装命令:
composer require jpuck/laravel-exception-mailer
包简介
Simple email reporter for exceptions in laravel.
README 文档
README
Whenever an uncaught exception is thrown, this handler will email details about it and the request.
Installation
composer require jpuck/laravel-exception-mailer
If you're running Laravel 5.5, then you're done.
For Laravel 5.4, add the service provider to config/app.php
jpuck\laravel\exception\mailer\Provider::class,
Configuration
Make sure the app's mail settings are configured properly.
By default it will send to the config('mail.from.address')
but this and the subject can be overridden by publishing the configuration file.
php artisan vendor:publish --tag=config --provider='jpuck\laravel\exception\mailer\Provider'
Don't Report
You can filter out exceptions you aren't interested in by filling in the
dontReport array in App\Exceptions\Handler
protected $dontReport = [ \Illuminate\Foundation\Http\Exceptions\MaintenanceModeException::class, \Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class, \Illuminate\Database\Eloquent\ModelNotFoundException::class, \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException::class, \Illuminate\Auth\AuthenticationException::class, \Illuminate\Auth\Access\AuthorizationException::class, \Illuminate\Session\TokenMismatchException::class, ];
Customize Layout
You can also publish the view to customize the format.
php artisan vendor:publish --tag=views --provider='jpuck\laravel\exception\mailer\Provider'
统计信息
- 总下载量: 82
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2018-01-11