PHPackages                             philipmorrisp/laravel-exception-email-notification - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. philipmorrisp/laravel-exception-email-notification

ActivePackage

philipmorrisp/laravel-exception-email-notification
==================================================

Send an email notification when found an exception with Mailable, Job Queue, EmailEventHandler

06PHP

Since Dec 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/philipmorrisp/laravel-exception-email-notification)[ Packagist](https://packagist.org/packages/philipmorrisp/laravel-exception-email-notification)[ RSS](/packages/philipmorrisp-laravel-exception-email-notification/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel-Exception-Email-Notification
====================================

[](#laravel-exception-email-notification)

- An enhanced exception handler with send email Event.
- Job Queue is implemented to avoid the additional loading time to send notification email.
- An EmailEventHandler is introduced with dynamic subscribe method.
- Part of JSON Response has been written for manipulating Exception
- You must have a running [mail server](https://laravel.com/docs/5.4/mail) to go further

Install
-------

[](#install)

Requires Laravel 5 - 5.4. Laravel 5.5 is not tested but you could give it a try.

```
composer install philipmorrisp/laravel-exception-email-notification dev-master

```

You can skip adding provider if you can load the [laravel package auto-discovery](https://laravel-news.com/package-auto-discovery).

Still it will be needed to add if we cannot depend on composer (e.g. On production without composer installed)

in the providers array of `config/app.php`:

```
# config/app.php

Philipmorrisp\LaravelExceptionEmailNotification\ExceptionServiceProvider::class,

```

Publish files to app for more custom configuration. (optional)

```
php artisan vendor:publish --provider="Philipmorrisp\LaravelExceptionEmailNotification\ExceptionServiceProvider"

```

Reload code

```
composer dump-auto
php artisan config:cache

```

Add this code to `app/Providers/EventServiceProvider.php`, if you do not have this file, create the file as provided:

```
#app/Providers/EventServiceProvider.php

protected $subscribe = [
    ...
    'App\Handlers\EmailEventHandler',
];

--------

# The following will be required ONLY if you do not have app/Providers/EventServiceProvider.php
# Add the following in the providers array of config/app.php:

App\Providers\EventServiceProvider::class,

# Create app/Providers/EventServiceProvider.php
