Package Data | |
---|---|
Maintainer Username: | csi0n |
Maintainer Contact: | chqssqll@gmail.com (csi0n) |
Package Create Date: | 2016-09-14 |
Package Last Update: | 2017-07-04 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-15 15:06:56 |
Package Statistics | |
---|---|
Total Downloads: | 15 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
##安装
composer require csi0n/laravel-excetion
或者在composer.json
中添加
"require": {
"csi0n/exception-mail": "^1.0"
}
然后执行composer update
##使用方法
在config/app.php
中添加
'providers' => [
csi0n\ExceptionEmail\ExceptionMailServiceProvider::class,
]
.....
'aliases' => [
'ExceptionEmailRepository' => csi0n\ExceptionEmail\Facades\ExceptionEmailFacade::class,
],
php artisan vendor:publish
config/exception_mail.php
Add ExceptionEmailRepository::send($e);
to app\Exceptions\Handle.php
like this:
public function render($request, Exception $e)
{
ExceptionEmailRepository::send($e);
return parent::render($request, $e);
}
Enjoy it!