Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Handler | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| register | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Exceptions; |
| 4 | |
| 5 | use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
| 6 | use Throwable; |
| 7 | |
| 8 | class Handler extends ExceptionHandler |
| 9 | { |
| 10 | /** |
| 11 | * The list of the inputs that are never flashed to the session on validation exceptions. |
| 12 | * |
| 13 | * @var array<int, string> |
| 14 | */ |
| 15 | protected $dontFlash = [ |
| 16 | 'current_password', |
| 17 | 'password', |
| 18 | 'password_confirmation', |
| 19 | ]; |
| 20 | |
| 21 | /** |
| 22 | * Register the exception handling callbacks for the application. |
| 23 | */ |
| 24 | public function register(): void |
| 25 | { |
| 26 | $this->reportable(function (Throwable $e) { |
| 27 | // |
| 28 | }); |
| 29 | } |
| 30 | } |