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