Skip to content

Commit 27a6231

Browse files
authored
Merge pull request #31 from justbetter/feature/render-not-found
render 404 so it wont appear in logs
2 parents cd7a212 + 0134637 commit 27a6231

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Exceptions/NotFoundException.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@
22

33
namespace JustBetter\DynamicsClient\Exceptions;
44

5-
class NotFoundException extends DynamicsException {}
5+
use Illuminate\Http\Request;
6+
use Illuminate\Http\Response;
7+
8+
class NotFoundException extends DynamicsException {
9+
10+
public function render(Request $request): Response
11+
{
12+
return response(null, 404);
13+
}
14+
}

0 commit comments

Comments
 (0)