From d8f44e3e22dc8ee5c1d09d9dcac49b6305a0bb43 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 6 Sep 2023 17:03:00 -0500 Subject: [PATCH] add dontReportDuplicates --- .../Foundation/Configuration/Exceptions.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Illuminate/Foundation/Configuration/Exceptions.php b/src/Illuminate/Foundation/Configuration/Exceptions.php index 0f4d7f70c9d4..c153025f9ca7 100644 --- a/src/Illuminate/Foundation/Configuration/Exceptions.php +++ b/src/Illuminate/Foundation/Configuration/Exceptions.php @@ -97,6 +97,18 @@ public function dontReport(string $class) return $this; } + /** + * Do not report duplicate exceptions. + * + * @return $this + */ + public function dontReportDuplicates() + { + $this->handler->dontReportDuplicates(); + + return $this; + } + /** * Indicate that the given attributes should never be flashed to the session on validation errors. *