| Total Complexity | 3 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Handler extends ExceptionHandler |
||
| 10 | { |
||
| 11 | use JsonHandler; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * A list of the exception types that are not reported. |
||
| 15 | * |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | protected $dontReport = [ |
||
| 19 | // |
||
| 20 | ]; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * A list of the inputs that are never flashed for validation exceptions. |
||
| 24 | * |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected $dontFlash = [ |
||
| 28 | 'password', |
||
| 29 | 'password_confirmation', |
||
| 30 | ]; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Report or log an exception. |
||
| 34 | * |
||
| 35 | * This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
||
| 36 | * |
||
| 37 | * @param \Exception $exception |
||
| 38 | * @return void |
||
| 39 | */ |
||
| 40 | public function report(Exception $exception) |
||
| 41 | { |
||
| 42 | parent::report($exception); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Render an exception into an HTTP response. |
||
| 47 | * |
||
| 48 | * @param \Illuminate\Http\Request $request |
||
| 49 | * @param \Exception $exception |
||
| 50 | * @return \Illuminate\Http\Response |
||
| 51 | */ |
||
| 52 | public function render($request, Exception $exception) |
||
| 59 | } |
||
| 60 | } |
||
| 61 |