From 499a78b579aa10286b3b2403eac7b201b27667b2 Mon Sep 17 00:00:00 2001 From: jeremykenedy Date: Mon, 4 Sep 2017 03:38:17 -0700 Subject: [PATCH] add auto discovery --- composer.json | 10 ++++++++++ readme.md | 11 ++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 5eb641b..17c2eae 100644 --- a/composer.json +++ b/composer.json @@ -17,5 +17,15 @@ "psr-4": { "jeremykenedy\\laravelexceptionnotifier\\": "src/" } + }, + "extra": { + "laravel": { + "providers": [ + "jeremykenedy\\laravelexceptionnotifier\\LaravelExceptionNotifier" + ] + } + }, + "config": { + "sort-packages": true } } \ No newline at end of file diff --git a/readme.md b/readme.md index 77916ec..4eb00b9 100644 --- a/readme.md +++ b/readme.md @@ -6,11 +6,11 @@ ## Introduction -Laravel exception notifier will send an email of of the error along with the stack trace to the chosen recipients. [This Package](https://packagist.org/packages/jeremykenedy/laravel-exception-notifier) includes all necessary traits, views, configs, and Mailers for email notifications upon your applications exceptions. You can customize who send to, cc to, bcc to, enable/disable, and custom subject or default subject based on environment. Built for Laravel 5.2, 5.3, and 5.4+. +Laravel exception notifier will send an email of of the error along with the stack trace to the chosen recipients. [This Package](https://packagist.org/packages/jeremykenedy/laravel-exception-notifier) includes all necessary traits, views, configs, and Mailers for email notifications upon your applications exceptions. You can customize who send to, cc to, bcc to, enable/disable, and custom subject or default subject based on environment. Built for Laravel 5.2, 5.3, 5.4, 5.5+. ## Requirements -* [Laravel 5.2, 5.3, or 5.4 or newer](https://laravel.com/docs/installation) +* [Laravel 5.2, 5.3, 5.4, or 5.5+](https://laravel.com/docs/installation) ## Installation @@ -20,7 +20,12 @@ Laravel exception notifier will send an email of of the error along with the sta composer require jeremykenedy/laravel-exception-notifier ``` -2. Register the package with laravel in `config/app.php` under `providers` with the following: +2. Register the package +* Laravel 5.5 and up +Uses package auto discovery feature, no need to edit the `config/app.php` file. + +* Laravel 5.4 and below +Register the package with laravel in `config/app.php` under `providers` with the following: ``` jeremykenedy\laravelexceptionnotifier\LaravelExceptionNotifier::class,