bebetter/exception-alert

Laravel 5 alert on exception

dev-master 2016-04-18 10:49 UTC

This package is not auto-updated.

Last update: 2024-12-13 10:46:19 UTC


README

Installation

You can install the package through Composer.

composer require bebetter/exception-alert

You must install this service provider. Make this the very first provider in list.

// config/app.php
'providers' => [
    // make this very first provider
    'Bebetter\ExceptionAlert\ServiceProvider',
    //...
];

Then publish the config file of the package using artisan.

php artisan vendor:publish --provider="Bebetter\ExceptionAlert\ServiceProvider"

And put receiver email to it.

Add to your Exception Handler's (/app/Exceptions/Handler.php by default) report method these line:

//...
public function report(Exception $e)
{
    \ExceptionAlert::send($e);
    
    //...
    
    return parent::report($e); 
}
//...

License

The MIT License (MIT). Please see LICENSE for more information.