1 | <?php |
||
15 | class Handler extends ExceptionHandler |
||
16 | { |
||
17 | /** |
||
18 | * A list of the exception types that should not be reported. |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $dontReport = [ |
||
23 | HttpException::class, |
||
24 | ModelNotFoundException::class, |
||
25 | ]; |
||
26 | |||
27 | /** |
||
28 | * Report or log an exception. |
||
29 | * |
||
30 | * This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
||
31 | * |
||
32 | * @param \Exception $e |
||
33 | */ |
||
34 | public function report(Exception $e) |
||
38 | |||
39 | /** |
||
40 | * Render an exception into an HTTP response. |
||
41 | * |
||
42 | * @param \Illuminate\Http\Request $request |
||
43 | * @param \Exception $e |
||
44 | * |
||
45 | * @return \Illuminate\Http\Response |
||
46 | */ |
||
47 | public function render($request, Exception $e) |
||
55 | } |
||
56 |