File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments