Handler.php 1.0 KB

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