/app/Exceptions/Handler.php

https://bitbucket.org/mdoviedor/hotelium · PHP · 52 lines · 21 code · 6 blank · 25 comment · 0 complexity · a93241665753c1c547bdcc1b715cf36e MD5 · raw file

  1. <?php
  2. namespace App\Exceptions;
  3. use Exception;
  4. use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
  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. * A list of the inputs that are never flashed for validation exceptions.
  16. *
  17. * @var array
  18. */
  19. protected $dontFlash = [
  20. 'password',
  21. 'password_confirmation',
  22. ];
  23. /**
  24. * Report or log an exception.
  25. *
  26. * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
  27. *
  28. * @param \Exception $exception
  29. */
  30. public function report(Exception $exception)
  31. {
  32. parent::report($exception);
  33. }
  34. /**
  35. * Render an exception into an HTTP response.
  36. *
  37. * @param \Illuminate\Http\Request $request
  38. * @param \Exception $exception
  39. *
  40. * @return \Illuminate\Http\Response
  41. */
  42. public function render($request, Exception $exception)
  43. {
  44. return parent::render($request, $exception);
  45. }
  46. }