1
0

Handler.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. * Report or log an exception.
  26. *
  27. * @param \Exception $exception
  28. *
  29. * @return void
  30. */
  31. public function report(Throwable $exception)
  32. {
  33. parent::report($exception);
  34. }
  35. /**
  36. * Render an exception into an HTTP response.
  37. *
  38. * @param \Illuminate\Http\Request $request
  39. * @param \Exception $exception
  40. *
  41. * @return \Illuminate\Http\Response
  42. */
  43. public function render($request, Throwable $exception)
  44. {
  45. return parent::render($request, $exception);
  46. }
  47. }