feat: add sentry

This commit is contained in:
Saeid
2021-01-29 15:33:48 +03:30
parent 9ca426a0c2
commit 332b90b5fd
5 changed files with 3737 additions and 934 deletions
+4
View File
@@ -34,6 +34,10 @@ class Handler extends ExceptionHandler
*/
public function report(Exception $exception)
{
if (app()->bound('sentry') && $this->shouldReport($exception)) {
app('sentry')->captureException($exception);
}
parent::report($exception);
}