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