| Total Complexity | 2 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Handler extends ExceptionHandler |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * A list of the exception types that are not reported. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $dont_report = []; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * A list of the inputs that are never flashed for validation exceptions. |
||
| 32 | * |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | protected $dont_flash = [ |
||
| 36 | 'password', |
||
| 37 | 'password_confirmation', |
||
| 38 | ]; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Report or log an exception. |
||
| 42 | * |
||
| 43 | * @param \Throwable $exception The throwable exception. |
||
| 44 | * |
||
| 45 | * @throws \Exception Throw the exception. |
||
| 46 | * |
||
| 47 | * @return void |
||
| 48 | */ |
||
| 49 | public function report(Throwable $exception) |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Render an exception into an HTTP response. |
||
| 56 | * |
||
| 57 | * @param \Illuminate\Http\Request $request The app http request. |
||
| 58 | * @param \Throwable $exception The throwable exception. |
||
| 59 | * |
||
| 60 | * @throws \Throwable Throw the nexception. |
||
| 61 | * |
||
| 62 | * @return \Symfony\Component\HttpFoundation\Response |
||
| 63 | */ |
||
| 64 | public function render($request, Throwable $exception) |
||
| 69 |