We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 31bb7d7 + 3af1b87 commit c762d8bCopy full SHA for c762d8b
README.md
@@ -72,6 +72,25 @@ To monitor exceptions, simply use the `Log` facade or helper:
72
Log::error($exception->getMessage(), ['exception' => $exception]);
73
```
74
75
+This can be done in the ```report``` method in ```app/Exceptions/Handler.php```
76
+
77
+```php
78
+ /**
79
+ * Report or log an exception.
80
+ *
81
+ * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
82
83
+ * @param \Exception $e
84
+ * @return void
85
+ */
86
+ public function report(Exception $e)
87
+ {
88
+ \Log::error($e->getMessage(), ['exception' => $e]);
89
90
+ return parent::report($e);
91
+ }
92
+```
93
94
You can change the logs used by changing the log level in the config by modifying the env var.
95
96
```php
0 commit comments