Skip to content

Commit 189f155

Browse files
update readme
1 parent b38a617 commit 189f155

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

readme.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,16 @@ Laravel exception notifier will send an email of of the error along with the sta
3232
php artisan vendor:publish --tag=laravelexceptionnotifier
3333
```
3434
35-
4. In `App\Exceptions/Handler.php replace the `report()` method with:
35+
4. In `App\Exceptions/Handler.php` include the following classes in the head:
36+
37+
```
38+
use App\Mail\ExceptionOccured;
39+
use Mail;
40+
use Symfony\Component\Debug\ExceptionHandler as SymfonyExceptionHandler;
41+
use Symfony\Component\Debug\Exception\FlattenException;
42+
```
43+
44+
5. In `App\Exceptions/Handler.php` replace the `report()` method with:
3645
3746
```
3847
/**
@@ -62,7 +71,7 @@ Laravel exception notifier will send an email of of the error along with the sta
6271
}
6372
```
6473
65-
5. In `App\Exceptions/Handler.php the method `sendEmail()`:
74+
6. In `App\Exceptions/Handler.php` the method `sendEmail()`:
6675
6776
```
6877
/**
@@ -89,9 +98,9 @@ Laravel exception notifier will send an email of of the error along with the sta
8998
}
9099
```
91100
92-
6. Configure your email settings in the `.env` file.
101+
7. Configure your email settings in the `.env` file.
93102
94-
7. Add the following (optional) settings to your `.env` file and enter your settings:
103+
8. Add the following (optional) settings to your `.env` file and enter your settings:
95104
96105
* **Note:** the defaults for these are located in `config/exception.php`
97106

0 commit comments

Comments
 (0)