Total Complexity | 3 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 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 | 'current_password', |
||
29 | 'password', |
||
30 | 'password_confirmation', |
||
31 | ]; |
||
32 | |||
33 | /** |
||
34 | * Register the exception handling callbacks for the application. |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | public function register() |
||
39 | { |
||
40 | // $this->reportable(function (Throwable $e) { |
||
41 | // // |
||
42 | // }); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Render an exception into an HTTP response. |
||
47 | * |
||
48 | * @param \Illuminate\Http\Request $request |
||
49 | * @param \Throwable $exception |
||
50 | * @throws \Throwable |
||
51 | * @return \Symfony\Component\HttpFoundation\Response |
||
52 | */ |
||
53 | public function render($request, Throwable $exception) |
||
60 | } |
||
61 | } |
||
62 |