You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update composer for Laravel 6.0.4
* update composer for Laravel ^6.0, raise minimum php version to 7.1
* update input facade to request
* fix Components/Notifier.php
* update composer.json for Laravel 7
* update composer.json for Laravel 7
* update Exception classes to Throwables
* more fixes but one part unsure (ddd())
* more fixes
* revert change in NotifierFailedException.php
* Support Laravel 6, 7 and 8
With PHP >= 7.2
* Clean Travis Ci config
* Use 'next' branch for laravel-notify
* Update README.md
To use Throwable instead of Exception for the report() method signature
* Fix PHP 7.4 error with PHPUnit
See: sebastianbergmann/phpunit#3728
* PHP 8.0 support
* Add Sentry driver to replace Raven
Because RavenHandler was removed from Monolog since version 2.0
* Update CHANGELOG and README
* Clean Composer file
Use the upcoming 'tylercd100/laravel-notify' 4.0.0 version
* Remove prefer lowest from travis
Co-authored-by: Robbie Love <[email protected]>
Co-authored-by: Tyler Arbon <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+15-12
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,11 @@ Currently supported notification channels via [Monolog](https://github.com/Selda
14
14
- Email
15
15
-[Pushover](https://pushover.net/)
16
16
-[Slack](https://slack.com/)
17
-
-[Hipchat](https://www.hipchat.com/)
18
17
-[Fleephook](https://fleep.io/)
19
18
-[Flowdock](https://www.flowdock.com/)
20
19
-[Plivo](https://www.plivo.com/) an SMS messaging service.
21
20
-[Twilio](https://www.twilio.com/) an SMS messaging service.
22
-
-[Sentry](https://getsentry.com) via [Raven](https://github.com/getsentry/raven-php)
21
+
-[Sentry](https://getsentry.com) via [Sentry SDK for PHP](https://github.com/getsentry/sentry-php)
23
22
-[Mailgun](https://mailgun.com)
24
23
25
24
## Version Compatibility
@@ -32,15 +31,17 @@ Currently supported notification channels via [Monolog](https://github.com/Selda
32
31
5.4.x | 3.x
33
32
5.5.x | 4.x
34
33
5.6.x | 4.x
35
-
6.x | 5.x
34
+
6.x | 5.x and 6.x
35
+
7.x | 6.x
36
+
8.x | 6.x
36
37
37
38
## Migrating from `3.x` to `4.x`
38
39
Make sure that the config file now includes the new `lern.notify.class` and `lern.record.class` settings. Check the [config file](https://github.com/tylercd100/lern/blob/master/config/lern.php) to see how they are used.
39
40
40
41
## Migrating from `2.x` to `3.x`
41
42
Version 3.x introduces the ability to collect more information from the error such as the user_id, url, method, and input data. In order to use 3.x you will need to copy over the new [config file](https://github.com/tylercd100/lern/blob/master/config/lern.php), the migration file and then migrate it.
42
43
```php
43
-
# This will only copy over the migration file. For the config file you can either include the --force flag (Which will overwrite it) or copy it manually from github
44
+
# This will only copy over the migration file. For the config file you can either include the --force flag (Which will overwrite it) or copy it manually from github
Before you run the migration you may want to take a look at `config/lern.php` and change the `table` property to a table name that you would like to use. After that run the migration
63
+
Before you run the migration you may want to take a look at `config/lern.php` and change the `table` property to a table name that you would like to use. After that run the migration
63
64
```bash
64
65
php artisan migrate
65
66
```
66
67
67
68
## Usage
68
69
To use LERN modify the report method in the `app/Exceptions/Handler.php` file
69
70
```php
70
-
public function report(Exception $e)
71
+
public function report(Throwable $e)
71
72
{
72
73
if ($this->shouldReport($e)) {
73
-
74
+
74
75
//Check to see if LERN is installed otherwise you will not get an exception.
75
76
if (app()->bound("lern")) {
76
77
app()->make("lern")->handle($e); //Record and Notify the Exception
@@ -82,17 +83,19 @@ public function report(Exception $e)
82
83
*/
83
84
}
84
85
}
85
-
86
+
86
87
return parent::report($e);
87
88
}
88
89
```
89
90
90
-
Dont forget to add this to the top of the file
91
+
Dont forget to add this to the top of the file
91
92
```php
92
93
//If you updated your aliases array in "config/app.php"
93
94
use LERN;
95
+
use Throwable;
94
96
//or if you didnt...
95
97
use Tylercd100\LERN\Facades\LERN;
98
+
use Throwable;
96
99
```
97
100
98
101
### Recording
@@ -143,7 +146,7 @@ LERN uses the Monolog library to send notifications. If you need more than the s
143
146
#### Changing the log level programmatically
144
147
Some notification services support different log levels. If changing the config value `lern.notify.log_level` is not enough then try it this way:
0 commit comments