Skip to content

Commit ef7171e

Browse files
authored
Internally don't report exceptions from DB::where()->sole() (#35908)
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent f3d4dcb commit ef7171e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Foundation/Exceptions/Handler.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
use Illuminate\Contracts\Debug\ExceptionHandler as ExceptionHandlerContract;
1212
use Illuminate\Contracts\Support\Responsable;
1313
use Illuminate\Database\Eloquent\ModelNotFoundException;
14+
use Illuminate\Database\MultipleRecordsFoundException;
15+
use Illuminate\Database\RecordsNotFoundException;
1416
use Illuminate\Http\Exceptions\HttpResponseException;
1517
use Illuminate\Http\JsonResponse;
1618
use Illuminate\Http\RedirectResponse;
@@ -89,6 +91,8 @@ class Handler implements ExceptionHandlerContract
8991
HttpException::class,
9092
HttpResponseException::class,
9193
ModelNotFoundException::class,
94+
MultipleRecordsFoundException::class,
95+
RecordsNotFoundException::class,
9296
SuspiciousOperationException::class,
9397
TokenMismatchException::class,
9498
ValidationException::class,

0 commit comments

Comments
 (0)