Skip to content

Commit 499a78b

Browse files
committed
add auto discovery
1 parent 08517ac commit 499a78b

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,15 @@
1717
"psr-4": {
1818
"jeremykenedy\\laravelexceptionnotifier\\": "src/"
1919
}
20+
},
21+
"extra": {
22+
"laravel": {
23+
"providers": [
24+
"jeremykenedy\\laravelexceptionnotifier\\LaravelExceptionNotifier"
25+
]
26+
}
27+
},
28+
"config": {
29+
"sort-packages": true
2030
}
2131
}

readme.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
## Introduction
88

9-
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+.
9+
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+.
1010

1111
## Requirements
1212

13-
* [Laravel 5.2, 5.3, or 5.4 or newer](https://laravel.com/docs/installation)
13+
* [Laravel 5.2, 5.3, 5.4, or 5.5+](https://laravel.com/docs/installation)
1414

1515
## Installation
1616

@@ -20,7 +20,12 @@ Laravel exception notifier will send an email of of the error along with the sta
2020
composer require jeremykenedy/laravel-exception-notifier
2121
```
2222
23-
2. Register the package with laravel in `config/app.php` under `providers` with the following:
23+
2. Register the package
24+
* Laravel 5.5 and up
25+
Uses package auto discovery feature, no need to edit the `config/app.php` file.
26+
27+
* Laravel 5.4 and below
28+
Register the package with laravel in `config/app.php` under `providers` with the following:
2429
2530
```
2631
jeremykenedy\laravelexceptionnotifier\LaravelExceptionNotifier::class,

0 commit comments

Comments
 (0)