LaravelPackages.net
Acme Inc.
Toggle sidebar
csi0n/laravel-excetion

send exception mail for laravel

17
0
1.0.2
About csi0n/laravel-excetion

csi0n/laravel-excetion is a Laravel package for send exception mail for laravel. It currently has 0 GitHub stars and 17 downloads on Packagist (latest version 1.0.2). Install it with composer require csi0n/laravel-excetion. Discover more Laravel packages by csi0n or browse all Laravel packages to compare alternatives.

Last updated

##安装

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!

Comments