* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0 */ namespace App\Exceptions; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Throwable; class Handler extends ExceptionHandler { /** * A list of exceptions with their corresponding custom log levels. * * @var array, \Psr\Log\LogLevel::*> */ protected $levels = [ ]; /** * A list of the exception types that are not reported. * * @var array> */ protected $dontReport = [ \Illuminate\Queue\MaxAttemptsExceededException::class, MetaFetchNotFoundException::class, ]; /** * A list of the inputs that are never flashed for validation exceptions. * * @var array */ protected $dontFlash = [ 'current_password', 'password', 'password_confirmation', ]; /** * Register the exception handling callbacks for the application. */ public function register(): void { $this->reportable(function (Throwable $e): void { }); } }