csi0n/laravel-excetion

send exception mail for laravel
17
Install
composer require csi0n/laravel-excetion
Latest Version:1.0.2
Last Updated:Jul 4, 2017
Links: GitHub  ·  Packagist
Maintainer: csi0n

##安装

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!

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released License
1.0.2
1.0.1
1.0.0