You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
753 B

4 years ago
  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 the exception types that are not reported.
  9. *
  10. * @var array
  11. */
  12. protected $dontReport = [
  13. //
  14. ];
  15. /**
  16. * A list of the inputs that are never flashed for validation exceptions.
  17. *
  18. * @var array
  19. */
  20. protected $dontFlash = [
  21. 'password',
  22. 'password_confirmation',
  23. ];
  24. /**
  25. * Register the exception handling callbacks for the application.
  26. *
  27. * @return void
  28. */
  29. public function register()
  30. {
  31. $this->reportable(function (Throwable $e) {
  32. //
  33. });
  34. }
  35. }