Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Handler
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 register
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Exceptions;
4
5use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
6use Psr\Log\LogLevel;
7use Throwable;
8
9class Handler extends ExceptionHandler
10{
11    /**
12     * A list of exception types with their corresponding custom log levels.
13     *
14     * @var array<class-string<Throwable>, LogLevel::*>
15     */
16    protected $levels = [
17        //
18    ];
19
20    /**
21     * A list of the exception types that are not reported.
22     *
23     * @var array<int, class-string<Throwable>>
24     */
25    protected $dontReport = [
26        //
27    ];
28
29    /**
30     * A list of the inputs that are never flashed to the session on validation exceptions.
31     *
32     * @var array<int, string>
33     */
34    protected $dontFlash = [
35        'current_password',
36        'password',
37        'password_confirmation',
38    ];
39
40    /**
41     * Register the exception handling callbacks for the application.
42     *
43     * @return void
44     */
45    public function register()
46    {
47        $this->reportable(function (Throwable $e) {
48            //
49        });
50    }
51}